-
Advanced JavaScipt inquiry: Recognizing when the onMouseOver is active
Hi all. I’ve searched the net and the Cow Web forum with no results. Here’s the scenario…
I have a main menu with buttons. When rolling over the main buttons, a drop down menu appears. When I roll out of the main menu button, the script times out for a second and then does whatever you want to do next, i.e., make the drop down menu disappear. However, when you go over the drop down menu, it disappears since it’s off the main menu button.
I need a ONE LINE code of script to solve my problem. When the time out script times out, I want the computer to see if the onMouseOver function is still active on either the main menu button or the dropdown menu. I need a simple code, something like this…
if (document.getElementByID(“menu”+i).onMouseOver) { dosomething }The above script doesn’t work, but I have to imagine I’m not far off and that there is a line of code that does work for what I need. Any creative answers out there?
Thanks!
Marco Solorio | OneRiver Media