13
What id like to do is have a custom block that links to some html pages that i have wrapped with xoops.
Id like to make a menu system that has for example, just a link called Index
When people click that link id like it to expand in the block and show sublinks like this
Index
-Page1
-Page2
-Page3
etc etc
ive had a go by using the following code, but the sublinks are always shown in the block, i only want them to appear when the index link is clicked so that it doesnt clutter the page with links.
heres the code i tried
<table cellspacing="0"> <tr> <td id="mainmenu">
<a class="menuTop"href="{X_SITEURL}!tutorweb!.php">Tutor WEB</a>
<!-- start module menu loop -->
<a class="menuMain" href="{X_SITEURL}!main!.php">Main Index</a>
<a class="menuSub"href="{X_SITEURL}!page1!.php">page1</a>
<a class="menuSub"href="{X_SITEURL}!page2!.php">page2</a>
<a class="menuSub"href="{X_SITEURL}!page3!.php">page3</a>
<!-- end module menu loop -->
</td>
</tr>
</table>
with that it displays the following all the time.
+Tutor Web
+Main Index
+page1
+page2
+page3
whereas id like it to initially only show
+Tutor Web
+Main Index
and not show the page1,page2 etc till Main Index is clicked. any ideas ?
cheers
cRuNcHiE