Results 1 to 3 of 3

Thread: "hot spots" in Smart Menu Folding tree

  1. #1
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question "hot spots" in Smart Menu Folding tree

    Smart Menu Folding tree
    http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

    This script is perfect for my need, except I want only the folder icon (see demo here) to be able to expand/collapse the tree as opposed to the way it is right now where you can click anywhere on that item's line - even whitespace - to expand/collapse. Any ideas? Thanks,

    - Amir
    Last edited by amirali; 12-14-2004 at 10:37 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm unfortunately there's no easy way with the script as is. The reason is the folder images aren't really there, but dynamically rendered using CSS. Due to this, the script can't be changed just to target the folder images when they're not present in the HTML source. Sorry.

  3. #3
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually, I figured out a way to achieve the same effect, by enclosing the li text in a <div width=100% onclick=javascript:checkcontained()> tag. Each click on anything in the div causes two calls to checkcontained() thus expanding it and then collapsing it right away, but it looks like nothing happens. Anybody see any possible problems with that?

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
  •