PDA

View Full Version : mouseovertabs delay



remcov
04-03-2013, 07:42 AM
1) Script Title: mouseovertabs

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

Is it possible to delay the mouseover event, the loading of the second mytabsmenu.
The script is great, but this is my 'problem': (not really a problem, more a feature request)

When a user selects a first menutab, the second menu will load directly.
Then the user moves his cursor to the second tabrow, and by accident moves his cursor over another 'first tab', resulting the second tabrow changing directly.

I was thinking, is it posible to activate the loading of the second tabrow, after a timeperiod of hovering on the first tab (like 0.4 seconds).
The chance of loading a submenu by accident, will be more smaller.

vwphillips
04-03-2013, 12:31 PM
Change this function


showsubmenu:function(linkobj){
var oop=this,tabsmenutree=this.tabsmenutree[linkobj._parentid]
var selected=parseInt(linkobj._pos)
tabsmenutree.submenu.hidetimer=setTimeout(function(){
oop.hidesubmenu(linkobj._parentid)
tabsmenutree.submenu_divs[selected].style.display="block"
oop.css(tabsmenutree.tabs[selected], "selected", "add")
tabsmenutree.submenu._prevselected=selected
},500);
},

remcov
04-04-2013, 06:17 AM
This is exactly what I had in mind, it works great!

You make me very happy. Thank you vwphillips!!