homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Looking for a snippet of js

 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.



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


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)

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)

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)

OmenTree [canada.cnet.com]


 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved