View Full Version : "hot spots" in Smart Menu Folding tree

12-14-2004, 10:35 PM
Smart Menu Folding tree

This script is perfect for my need, except I want only the folder icon (see demo here (http://www.dynamicdrive.com/dynamicindex1/navigate1.htm)) 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

12-15-2004, 10:13 AM
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.

12-15-2004, 08:52 PM
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?