...

View Full Version : Order Events are Triggered...



Evlich
04-02-2003, 11:46 PM
Ok, I have 2 <divs> next to one another and what I want to happen is when the mouse goes off of one and onto the other, i thought that the mouseoff would register and then the mouseon, but apparently that is not true. So I was wondering if there is any way in the world that I could get it to trigger that way. Thanks a lot.
~evlich

chrismiceli
04-03-2003, 03:29 AM
give us some code. this should work

<div onMouseOut="blah()">hey</div>
<div onMouseOver="blah()">hey</div>

Evlich
04-03-2003, 12:36 PM
<div id="m0" class="ntMenuStdOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">
<div class="ntMenuContents">
<span id="p0-0" class="ntItemOFF" onmouseover="highlight(this); setCMenu(this);" onmouseout="unsetCMenu(this); highlight(this);">Programming</span>
<div id="m0-0" class="ntMenuFltOFF" style="visibility: hidden; z-index: 12; position: absolute; left: 100px; top: 100px;" onmouseover="onMenu(this); highlight(this);" onmouseout="highlight(this); unsetCMenu(this);">
<div id="p0-0-0" class="ntItemOFF" onmouseover="highlight(this); setCMenu(this);" onmouseout="unsetCMenu(this); highlight(this);">Programming</div>
<div id="m0-0-0" class="ntMenuFltOFF" style="visibility: hidden; z-index: 13; position: absolute; left: 100px; top: 100px;" onmouseover="onMenu(this); highlight(this);" onmouseout="highlight(this); unsetCMenu(this);">
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Tutorials</div>
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Downloads</div>
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Forums</div>
</div>
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Tutorials</div>
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Downloads</div>
<div class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Forums</div>
</div>
| <span class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Development</span>
| <span class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Math</span>
| <span class="ntItemOFF" onmouseover="highlight(this);" onmouseout="highlight(this);">Science</span>
</div>
</div>

That is just a little menu that is generated using PHP. When I move from p0-0-0 to m0-0-0, the mouseout event for p0-0-0 is happening after the mouseover event for m0-0-0. Any ideas?
Thanks a lot.
~evlich

Evlich
04-03-2003, 10:02 PM
Ok, I have been thinking about it and am figuring that events are probably placed on a stack. Even though that has got to be the stupidest thing that I have ever heard of. So I would like to know if there is a way to determine which events have been fired and cancel one. For instance, when I fire the mouseover event for a div, i would like to process any other events and then process this event as the last one. Any ideas on that?
Thanks a lot.
~evlich



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum