Results 1 to 4 of 4

Thread: SuckerTree Vertical Menu MouseOut Delay Help

  1. #1
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SuckerTree Vertical Menu MouseOut Delay Help

    1) Script Title: SuckerTree Vertical Menu (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...menu-vertical/

    3) Describe problem: Not so much a problem than a request for some help for a poor old Noob . I'd like to modify the code to incorporate a delay on the mouseout event so that the sub-menus don't disappear so quickly. Any help would be greatly appreciated.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here, try changing:
    Code:
        ultags[t].parentNode.onmouseout=function(){
        this.getElementsByTagName("ul")[0].style.display="none"
        }
    To:
    Code:
        ultags[t].parentNode.onmouseout=function(){
          var a = this;
          setTimeout(function(){
            a.getElementsByTagName("ul")[0].style.display="none";
          }, 100);
        }
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nile: Thank you for the reply... It worked, but not the way I was hoping. For some reason the setTimeout works when you mouseout from the Level 1 Header and mouseover another Level 1 Header, but when you mouseout from a Level 1 Header to its Level 2 Sub Header, the Level 2 Sub Header disappears. I was hoping to have the setTimeout work only when someone mouseout's from the Level 2 Sub Header. Not sure why it wouldn't work. Any ideas?

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

    Please include your code so that we can take a look at it, we can't do much without it.
    Jeremy | jfein.net

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
  •