www.webdeveloper.com
Results 1 to 3 of 3

Thread: Mouse Out Delay Problems

  1. #1
    Join Date
    Feb 2006
    Posts
    7

    Mouse Out Delay Problems

    I am using the 'suckertree horizontal menus', and am trying to add a delay to the mouseout function.

    I am struggling!

    Google shows some code where people have had no success, and some code which apparently works, but for a different version of the menu.

    Can anyone see the best way to go?

    Here is the original working code with no delay:
    Code:
    ultags[t].parentNode.onmouseout=function(){
      this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    And this is what I am trying:

    Code:
    ultags[t].parentNode.onmouseout=function(){
      setTimeout("this.getElementsByTagName(\"" + ul + "\")[0].style.visibility=\"" + hidden + "\"", 1500);
    }
    Any help greatfully recieved!

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    ultags[t].parentNode.onmouseout=function(){
      setTimeout(function(){this.getElementsByTagName("ul")[0].style.visibility="hidden"}, 1500);
    }
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Feb 2006
    Posts
    7
    Thanks.

    Unfortunately this is not working for me - the menus don't clear.

    I think the first argument of the SetTimeout has to be in quotes?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

"

"