PDA

View Full Version : can you timeout menu mouseover to reduce sensitivity?



sosi
06-04-2009, 05:27 PM
1) Script Title: Drop Down Tabs (5 styles)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm

3) Describe problem: not an actual problem with the script -- i love these tabs. I'm using example one.

but the mouseovers are very sensitive. is there a way to use timeout or something so that they don't open with just an accidental mouseover? thank you.

ddadmin
06-05-2009, 04:06 AM
Try finding the following lines inside the .js file:


obj2.parentNode.className="selected"
obj.visibility="visible"

and change that to:

clearTimeout(this.delayshow)
tabdropdown.delayshow=setTimeout(function(){
obj2.parentNode.className="selected"
obj.visibility="visible"
}, 200)

Where 200 adds a 200 milliseconds delay.