I Have a question about 2 scripts of mine.
I found a script on internet, which works nicely:
[URL=http://iceblade.mybesthost.com/tocmenu-srv/]http://iceblade.mybesthost.com/tocmenu-srv/
When you click on a [+] it expands, and when you click again it collapses again. (watch the coloring of the text)
(see Original’s folder for 2 main files)
tocTab.php3 has an array(array(var,var,var),array(var,var,var)); in it, manually coded.
I rewrote the tocTab.php file so that it reads my database,
and creates the array(array(var,var,var),array(var,var,var)); dynamicly.
The menu shows the results as follows:
[URL=http://iceblade.mybesthost.com/Website/index.php?page.php?]http://iceblade.mybesthost.com/Website/index.php?page.php?
The menu loads correctly, but when you open the [+] and click in one of the sublevels the top level doesn’t get deselected.
(My versions of the dynamic files are in the Dynamic folder.)
The problem is probably in tocTab.php But I can’t find where.
The array was a pain in the neck to create and eventhough it works something is still wrong. Please help me, I’m getting stressed after 4 days of straining over this bit of code.? It’s probably a really small error somewhere, but the fact that I can’t find it is unnerving.
Thank you for your time!
Maurice
[upl-file uuid=05b8722a-1746-4925-b108-e16a6277c20d size=6kB]menus.zip