JavaScript mouseover/mouseout issue with child element
I have this little problem and I am requesting for your help. I have a div element, inside which I have an img element, like this <div id="parent" onmouseover="MyFuncHover()" onmouseout="MyFuncOut()"> <img id="child" src="button.png" style="visibility: hidden" /> </div> <script type="text/javascript"> function MyFuncHover() { // Here I have some code that makes the "child" visible } function MyFuncOut() { // Here I have some code that makes the "child" invisible again } </script> As you, see, the image is a child of the div . I want that only when I leave the div , the child to disappear. Yet,