Welcome to WebmasterWorld Guest from 54.226.183.49

Forum Moderators: incrediBILL

Message Too Old, No Replies

Looking for a snippet of js

     

Brett_Tabke

8:04 am on Jan 19, 2001 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
Brett

tedster

8:23 am on Jan 19, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

8:32 am on Jan 19, 2001 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

9:09 am on Jan 19, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

9:12 am on Jan 19, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



OmenTree [canada.cnet.com]

oilman

4:18 pm on Jan 19, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Opencube [opencube.com] - it's a set of applets rather than js but they have some really sweet menu apps.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month