OZONE Asylum
Forums
DHTML/Javascript
DD menu issue - hiding div layer
This page's ID:
29362
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
hey all. i don't know js well at all. i'm trying to hide a div when the mouse rolls off it (dd menu). It is only sometimes hiding it. here's what i have: <div id="dropdown_menu" onmouseout="doSomething(event);"> <ul> <li>anchor tag with rollover image</li> <li>anchor tag with rollover image</li> </ul> </div> and the script (I found on the web) function doSomething(e) { if (!e) var e = window.event; var tg = (window.event) ? e.srcElement : e.target; if (tg.nodeName != 'DIV') return; var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement; while (reltg != tg && reltg.nodeName != 'BODY') reltg= reltg.parentNode if (reltg== tg) return; // Mouseout took place when mouse actually left layer // Handle event hidediv("dropdown_menu");//another fx that works fine } thanks in advance.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »