Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript Image Sub-Menu

    Hi,

    I'm working on the navigation for my site. Here's what I'm trying to do:

    1. Have my navigation on one line (5 images right next to each other)
    2. When a user hovers their mouse over an image that should have a sub-menu, the sub-menu image (.jpg) will be displayed beneath it. I wonder if it is best to display this as one image and use an image map, or have a series of images like the main navigation.

    The main problem I'm having here is that on-mouse out the sub-menu dissapears, not allowing the user enough time to hover over the sub-menu beneath it. Does anyone have any working code that could work for this?

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,511
    Thanks
    3
    Thanked 504 Times in 491 Posts
    Mouseover setTimeout delay keeping tooltip from showing

    o yes you can give the divs a background image or put an image in the div
    Last edited by vwphillips; 06-02-2006 at 06:06 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
    New Coder
    Join Date
    May 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    vwphilips,

    Sorry, but that doesn't work for what I'm doing I just need a simple "display sub-menu image" under correct nav image JavaScript. Can anyone help please?


  •  

    Posting Permissions

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