Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:46:36+00:00 2026-05-28T20:46:36+00:00

Text and sample code adapted from http://www.webdeveloper.com/forum/archive/index.php/t-65078.html , may not reflect actual question: I

  • 0

Text and sample code adapted from http://www.webdeveloper.com/forum/archive/index.php/t-65078.html, may not reflect actual question:

I have a div and then a div with a nested table inside it: also there is some div outside the parent div.

<div onmousemove="move()" onmouseout="out()">
  <div id="dvRep"> </div>
    <table>
        <tr><td>ITEM 1</td></tr>
        <tr><td>ITEM 2</td></tr>
        <tr><td>ITEM 3</td></tr>
        <tr><td>ITEM 4</td></tr>
        <tr><td>ITEM 5</td></tr>
    </table>
</div>

<div id="divChartPopupMenu">
    Hide me.     
</div>

Whenever I move my mouse within the div it correctly calls the move function, but the onmouseout attribute doesn’t work like I thought. I thought that the out() function would only be called if you moved your mouse off the div, but out() is called whenever I move off one of the table rows. So if my mouse is on a row and I move to the next row it calls out(). I want out() to be called only when the user moves off the entire div. any ideas?

What I am trying is on out function I am hiding another div.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:46:37+00:00Added an answer on May 28, 2026 at 8:46 pm

    i suggest you to read this article on 3 phases of javascript events.
    http://www.quirksmode.org/js/events_order.html

    in the function move or out, you can check if the srcElement(IE) or target(W3C) has an id called dvRep..

    it should look something like this:

    function out(event)
    {
       event.stopPropagation(); //cancel bubbling
    
       ele = event.target || event.srcElement
       if (ele.id === "dvRep"){  
          //your code
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a small sample of code in C# to capture selected text from
I have this sample text, which is retrieved from the class name on an
I've got a piece of text that contains another regular expression. Sample text: ...<rege>!^.*$!mailto:asdf@adsfsdaf.com!</rege>...
Hi I want to get Time Zone from locale. My code is package com.my.country;
Could someone post some sample code showing how to insert text greater than 4000
I have the following (sample)code to filter search results from a LLBLGen data source:
In the sample code The javascript drowdown works fine, but on link text my
Sample code: using System; using System.IO; using System.Collections.Generic; using System.Text; using iTextSharp.text; using iTextSharp.text.pdf;
here's the sample code (fully working - just copy to an empty html file
I have a simple text reading code for Visual Basic: Dim fileReader As String

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.