NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Javascript Submenu

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-10-2004, 01:17 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Dec 2004
Posts: 9
squeakypants is an unknown quantity at this point
 



Question Javascript Submenu


What is the best way to make a javascript (therefore active) submenu? The only way I found was the switch element, but it won't work for me. This is what I have:
HTML Code:
<!--in the head-->
<script language="javascript">
	var submenu;
	var chg;
	function chgsub(chg) {
		submenu = chg;
	}
</script>
HTML Code:
<!--where i want the submenu-->
<script language="javascript">
	switch (submenu){
	case "resume":
		document.write = "Osiris|Zelda|Comics";
	break;
}
</script>
HTML Code:
<!--link to change submenu-->
<a href="javascript:chgsub('resume');">Resume</a>
That won't work and I can't think of any other way. I could use php, but I don't want to have to reload (i want it active). Any ideas?
squeakypants is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:31 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger