By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,937 Members | 1,532 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,937 IT Pros & Developers. It's quick & easy.

Link in div breaking onmouseleave

P: 1
Hi,

I have a div which scrolls out onmouseover and in onmouseleave. Within the div, there's another div containing the text. Within the text there's a link, which when rolled over triggers the onmouseleave event. I thought onmouseleave was only supposed to fire when the mouse moves outside the boundaries of the element?

Here's a pared-down version of the code:


Expand|Select|Wrap|Line Numbers
  1. <div id="anticipazioni" style="top:260px; position:absolute" onmouseover="moveDiv(this);" onmouseleave="closeAllDivs();">
  2.             <img src="gfx/text/anticipazioni_it.gif" name="anticip" width="285" height="21" border="0" id="anticip"/><br>
  3.             <div style="background-color:#BEBEBE; width:auto; padding-left:36px; padding-top:10px; height:86px;">
  4.                 blah blah blah<br><br>
  5.                 <span class="blackText"><a href="">VAI AL CAPITOLO</a></span><br>
  6.             </div>
  7.         </div>
Any ideas? Suggestions?
Nov 16 '06 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This might have to do with the fact that onmouseover moves the div. Btw, onmouseleave is an IE-only event.
May 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.