• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

microsoft drop down menu

Yuck, those are pointless. DHTML sucks, I'd rather one put the links to certain sections upfront, rather than having to enable Active Scripting in order to go somewhere. :p
 
you should be able to find one @ dynamicdrive.com or you can use this one i have found using 1st page



Code:
<script language="JavaScript">
<!--
function go_to_station(){
	if (document.stationform.stationselect.options[0].selected){
		window.location.href = "http://www.mydesktop.com/javascript/";}	
	else if (document.stationform.stationselect.options[1].selected)		
	{	window.location.href = "http://www.mydesktop.com/javascript/scripts/";}
	else if (document.stationform.stationselect.options[2].selected)		
	{	window.location.href = "http://www.mydesktop.com/javascript/help/";}	
	else if (document.stationform.stationselect.options[3].selected)		
	{	window.location.href = "http://www.mydesktop.com/javascript/books/";}	
	else if (document.stationform.stationselect.options[4].selected)		
	{	window.location.href = "http://www.mydesktop.com/javascript/irc/";}	
	else if (document.stationform.stationselect.options[5].selected)		
	{	window.location.href = "http://www.mydesktop.com/javascript/help/links/";}	

	return true;	
	}

function textValue(){	
	var stationInteger, stationString	
	stationInteger=document.stationform.stationselect.selectedIndex	
	stationString=document.stationform.stationselect.options[stationInteger].text	
	document.stationform.stationtext.value = "Go to " + stationString +"!"	}

//-->
</script>

</head>
<h1>Go! Menu</h1>
<center>
Simply select where you would like to go and click the Go! Button.<p>
<form name="stationform">
<select name="stationselect" onChange="textValue()" multiple size="5">
<option>Home
<option>JS Examples
<option>JS Help
<option>#JavaScript
</select>

<br><p>
<input type="button" name="stationbutton" value="Go!" onClick="go_to_station()">
<p>
<input type="text" name="stationtext" value="" size="35" maxlength="35">
<p>
</form>
 
peace dude, but what if I don't want that bottom window? u know the one that says the description?
 
:eek: Are you wonking!?!
:D
Look what I learnt in JavaScript class!
Code:
<html>
<head>
<title>~ Luve is in the air ~</title>

[color=red]<script type="text/javascript" language="javascript">[/color]
<!--
function Meow()
{
var meow = window.document.weepform.weepselect.selectedIndex[color=red];[/color]
window.location.href = window.document.weepform.weepselect[meow].value;
}
//-->
</script>

</head>
<body>

<form name="weepform">
<select size="4" name="weepselect">
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.freewebspace.net">fws</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.myacen.net/~otashki">weeps</option>
</select>
<br>
<input type="button" value="Luve!" onClick="Meow()[color=red];[/color]">
</form>

</body>
</html>
:)
 
Last edited:
Back
Top