onMouseOver, hyperlink and rel...help me :(

Posted by bahamut100 on Stack Overflow See other posts from Stack Overflow or by bahamut100
Published on 2010-05-31T08:32:02Z Indexed on 2010/05/31 8:42 UTC
Read the original article Hit count: 228

Hi,

Currently, I have a carrousel on javascript which works when we click on hyperlink, like this :

<div id="direction1">
  <p>
    <a href="javascript:" class="carousel-control" rel="next"><img class="fleche_suiv" src="/project/images/next.png" alt="Suivant" title="Suivant" />
    </a>
  </p>
</div>

I would like execute this evenment with a onMouseOver too. So I try this, but it doesn't work :

<div id="direction1">
  <p onMouseOver="this.getElementsByTagName('a').click()">
    <a href="javascript:" class="carousel-control" rel="next"><img class="fleche_suiv" src="/project/images/next.png" alt="Suivant" title="Suivant" />
    </a>
  </p>
</div>

How to fix it ???

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html