|
I'm new with DHTML & I've created a dhtml menu tree for a site I'm designing. anyway, I had this code and do not
remember which site I pulled it from but I can't seem to make it work properly. The menu is supposed to expand when you click on the button or the [+] sign. then when it expands it displays the [-] sign then whne you click it again it should close and display the [+] sign again. Also if you click a differnt button to expand once one is expanded it should close the previous expanded menu and place a [+] next to it.
The problem is when a menu is expanded and you click to expand the second menu [+] it closes the top expanded menu (which it should) but it's supposed to put the [+] next to the menu that closes. what it does is it puts either the [-] next to it or the image comes up broken.
I think it's something in my javascript code & I need help. I've been at this for too long. someone please help.
http://www.insite.cc/hdp/nd/help.php
thanks...
|
|
|
In your _menuflow_org.js include file, take a look at the function expandNew(). Near the top of this function it has a comment:
//only expand one row at a time
//**************************************************//loop through plus/minus images, change all to true
The code immediately below this is probably where you need to focus your attention.
|
|
|
|
|
|
|
|
|
|