SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hierarchichal dropdown menu

    I'm trying to edit the code for this dropdown menu so that the next tree level will open when a user clicks on the text of the word Tutorials instead of the folder image. How can I do this? I tried using the span tag to call the clickhandler, but it didn't work.

    I'd really appreciate some help on this.

    Thanks

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just give the span the same id and className as the img...
    <IMG src="/images/folder.gif" id="Out1" class="Outline" style="cursor: hand">
    <span id="Out1" class="Outline">&nbsp;Tutorials</span><br>

    (Or rewrite clickHandler() if you want a more reliable solution - I don't think giving two different elements the same id is a good idea...)

    BTW; you know that the menu isn't working in Mozilla?


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
  •