Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor
Looking for a snippet of js Brett_Tabke msg:586161 8:04 am on Jan 19, 2001 (gmt 0) I need a snippet of simple java script that opens a "folder" style submenu.
+ Row A
+ Row A + Row C
Click on Row A and it opens to reveal sub-options:
- Row a
.... sub row aa .... sub row aa - Row B - Row C
I've seen these before, but darned if I can find a snip for it. tia.
tedster msg:586162 8:23 am on Jan 19, 2001 (gmt 0)
Brett, Here's one way [ zdnet.com] to go at it that has good browser compatibility. I've successfully modified this code in lots of ways.
The link to the script is about half way down the page (Look for Navigation - Cascading Menu)
Brett_Tabke msg:586163 8:32 am on Jan 19, 2001 (gmt 0)
That is the style I am looking for, but one that doesn't connect back to the server for interaction when click - I want the sub menu self contained. If I'm going to go back to the server, I think I'd just write it in html. Maybe what I'm after can't be done. tedster msg:586164 9:09 am on Jan 19, 2001 (gmt 0)
Ivan Peters [ ivanpeters.com] offers a cascading tree menu in JS that doesn't call back to the server. It's a bit more than a snippet, however. He calls his code "Joust".
I have another one tucked away somewhere called OmenTree, but it currently eludes me.
tedster msg:586165 9:12 am on Jan 19, 2001 (gmt 0)
OmenTree [ canada.cnet.com] oilman msg:586166 4:18 pm on Jan 19, 2001 (gmt 0)
Opencube [ opencube.com] - it's a set of applets rather than js but they have some really sweet menu apps.