SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Superfish menu not working as advertised

    Updating a site dating from about 2002, I added a superfish based menu, with a delay when the mouse moves off the menu item to keep the flyout section visible for a bit in case the user moved the mouse the wrong way and missed the flyout.
    (superfish example = http://users.tpg.com.au/j_birch/plug...rfish/#sample3 )

    Originally the site used tables and a nested table (it was from 2002!!!) and the new menu work okay when still sitting in a table cell.
    Then I did the final conversion to using divs for layout - and the delay stopped working.

    The site is still being brought up to date (the index page is a mess, that's the next task, just waiting for the owner's new text), but anyone got any idea why the delay stopped and how to make it work again?

    the site = www.lxavionics.co.uk

    I'm not a Jquery expert in any way - I haven't read the books I bought on it yet, so I need help when these things go wrong, and keep it simple, please.

    Oh, the css hasn't had the old bits removed yet, so it's a bit messy to say the least, but the superfish menu styles are in the file suckerfish.css (suckerfish was the first attempt at a new menu)

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,114
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    I wonder if it's something to do with the menu being pulled in from outside? I tested your page with the menu code in the HTML and the delay worked. I'd suggest pulling it in with a PHP include rather than with JS. That's pretty dangerous anyway. Someone with JS off will get no menu.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    When it first worked, I pulled in the menu the same way.


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
  •