SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mouseout function help

    I have a css menu here: MENU

    Everything is fine except when you hover over an item. It drops down, and I have the menu items spaced down a little ways from the top menu for a reason. When you go to hover over the drop down items obviously they disappear because of the gap that i have there. Is there a way to delay that with JS? like 1/4 of a second so the user can have enough time to hover over the drop down menu?

  2. #2
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anybody have any suggestions? Or should this go into CSS forum?

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    If CSS hover is used to trigger it, then javascript can't really help with that there.

    Would it help to use margin or padding to extend the top of the dropdown? I think you may be right about approaching the CSS forum.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was just doing some reading online earlier and everything pointed me to thinking it was Javascript. It was a mouseout event that referenced a certain ID or Class.... I may be wrong but that's what I was taking in about it. I'll also try the CSS forums. Thanks!

  5. #5
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out with CSS. Thanks.
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health


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
  •