Advanced Search

Results 1 to 3 of 3

Thread: mouseovertabs delay

  1. #1
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mouseovertabs delay

    1) Script Title: mouseovertabs

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...seovertabs.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.

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,708
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    Change this function

    Code:
    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);
    },
    Last edited by vwphillips; 04-03-2013 at 12:41 PM.
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is exactly what I had in mind, it works great!

    You make me very happy. Thank you vwphillips!!

Similar Threads

  1. How to delay second slideshow
    By luudp in forum Dynamic Drive scripts help
    Replies: 13
    Last Post: 06-01-2012, 12:47 AM
  2. Mouseovertabs Menu
    By Ruprecht in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-13-2011, 06:21 AM
  3. Mouseovertabs question
    By imacg in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-31-2009, 02:34 PM
  4. Mouseovertabs menu
    By Phanitha in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-25-2009, 05:48 PM
  5. Delay
    By aalroubaie in forum JavaScript
    Replies: 7
    Last Post: 11-22-2006, 09:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •