SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jul 2002
    Location
    space
    Posts
    845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How is this done?

    Hi, I wasn't sure where to post this... I'm not sure if this is done with JS or not. Basically, on http://www.amazon.com/ you can click the header where it says "See All 34 Categories" and a little menu pops up. Does anyone know where I can get a tutorial on this to achieve something similar?

    Thanks.

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript can be used to create a simple script which displays a menu when your cursor hovers over a button, then disappears (following a short delay) once your cursor is no longer over the button or the menu.

    You need to search for information on displaying/hiding DOM elements using javascript. I have some code which is pretty close if you want it.
    From the English nation to a US location.

  3. #3
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's the code: DEMO

    It may be a bit overkill for what you need, but it should be easy to adapt.



    Andy
    From the English nation to a US location.


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
  •