Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Order Events are Triggered...

    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

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    give us some code. this should work

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

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <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

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •