Welcome to WebmasterWorld Guest from 54.198.143.210

Forum Moderators: incrediBILL

Message Too Old, No Replies

Looking for a snippet of js

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

Administrator from US 

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

joined:Sept 21, 1999
posts:38074
votes: 17


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

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

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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)

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

Administrator from US 

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

joined:Sept 21, 1999
posts:38074
votes: 17


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.
9:09 am on Jan 19, 2001 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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.

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

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


OmenTree [canada.cnet.com]
4:18 pm on Jan 19, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
posts:2151
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members