Click to See Complete Forum and Search --> : FrontPage 2003 Drop Down


decoy1983
02-26-2008, 05:44 AM
Hi Guys,

Just a quick question, I am trying to inserta drop down menu onto one of my pages that when you click the drop down then select one of the options it goes to a specified html file, can this easily be done?

I tried changing the value to the name of the file but no luck :(

Or do I need to use something like javascript to achieve this?

Here is the code I am currently trying to make work

<select name="Suburb" size="1">
<option value="belgrave.html">Belgrave</option>
<option>****atoo</option>
<option>Emerald</option>
<option>Monbulk</option>
<option>Montrose</option>
<option>Mount Evelyn</option>
<option>Sassafras</option>
<option>Tecoma</option>
</select>

Cheers

Decoy

tasneem
03-04-2008, 07:39 PM
Hi
Yes, you will have to use javascript. This is a sample from http://jennifermadden.com/javascript/arraySelect.html page:
<script language="javascript">
function goToURL() {

var sites = new Array("","http://jennifermadden.com/162/","http://builder.cnet.com")
//array of urls to visit, first is always blank.
var optionNumber = document.billy.bob.selectedIndex

if (optionNumber != 0) { //the first option is used as directions holder
location.href = sites[optionNumber]
}

}
</script>

<form name="billy">

<select name="bob" onChange="goToURL()">
<option>Select a Page</option><!-- first is always used for directions -->
<option>Tutorials Home</option>
<option>Builder.com</option>
</select>

</form>


hope this helps.