Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old January 11th, 2006, 04:25 PM   #1
New Member
 

Join Date: Nov 2005
Age: 27
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 riotman is on a distinguished road
Drop down, having certain other menus appear...

I was wondering if someone could help me with the logic behind this problem.

I have a drop down menu and based on what the user selects from it i would like to have certain other text/drop down menus appear below. What kind of things would I need to do to accomplish this? I'm assuming there is both HTML and some javascript involved.

Any help would be appreciated. Thanks.
riotman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 12th, 2006, 11:39 AM   #2
New Member
 

Join Date: Jan 2006
Location: Leeuwarden, NL
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AnneJan is on a distinguished road
Lightbulb Re: Drop down, having certain other menus appear...

Maybe a menu like this:
HTML Code:
<html>
<head>
<style>
.menu /* view of menu */
{position:relative;background-color:gold;color:brown;border:1px solid brown;width:85;
font-size:10px;font-family:verdana;font:bold;position:absolute;cursor:hand;}
.item_panel /* view of borders */
{width:85;border-left:1px solid brown;border-right:1px solid brown;clip:rect(0,85,0,0);
position:absolute;}
.item_panel a /* view text submenu's */
{text-decoration:none;color:brown;font:bold;cursor:hand;}
.item  /* uitzicht achtergrond submenu's */
{background-color:lightyellow;width:83;font-size:10px;font-family:verdana;}
</style>
<script type="text/javascript" src="dropdownmenu.js"></script>
</head>
<body>
<script language="JavaScript">
//Link[nr] = "[0 is headitem/1 is subitem],Link name,url,target (_blank|_top|framenaam)"
var Link = new Array();
Link[0] = "0|Headitem 1";
Link[1] = "1|Subitem 1.1|#|_blank";
Link[2] = "1|Subitem 1.2|#|_blank";
Link[3] = "0|Headitem 2";
Link[4] = "1|Subitem 2.1|#|_blank";
Link[5] = "1|Subitem 2.2|#|_blank"
Link[6] = "0|Headitem 3";
Link[7] = "1|Subitem 3.1|#|";
Link[8] = "1|Subitem 3.2|#|_blank";
Link[9] = "0|Headitem 4";
Link[10] = "1|Subitem 4.1|#|_blank";
Link[11] = "1|Subitem 4.2|#|_blank";
startup("");
// startup(""); begin with all headitems closed
// startup("all"); begin with all headitems opened
// startup("1|2"); begin with first and second headitem opened
// startup("4"); begin with fourth headitem opened
</script>
</body>
</html>
Plus the attachment "dropdownmenu.js"!
Greetz,
Attached Files
File Type: zip Dropdownmenu.zip (1.9 KB, 43 views)

Last edited by AnneJan; January 12th, 2006 at 12:03 PM..
AnneJan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 12th, 2006, 04:59 PM   #3
New Member
 

Join Date: Nov 2005
Age: 27
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 riotman is on a distinguished road
Re: Drop down, having certain other menus appear...

Not exactly what I am looking for but thanks for the try.

I just have an html drop down menu with about 6 choices. When I select one of those I would like another drop down menu to appear further down the page.
riotman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
drop , down , having , certain , other , menus , appear


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple drop down menus D4CUE HTML, XHTML and CSS 3 March 6th, 2008 04:06 AM
Drop down menus drop behind flash header theGAME71135 Flash and ActionScript 3 January 10th, 2008 05:42 AM
Help with Drop down menus yakisobayum Your Design and Layout 0 June 6th, 2007 04:26 PM
Drop Down Menus joshcxa JavaScript 1 June 26th, 2006 01:06 PM
Drop down Menus u2orange HTML, XHTML and CSS 8 November 27th, 2003 12:13 PM


Search Engine Optimization by vBSEO 3.2.0 RC8