Mail Menu Script
 

Who would you like to send an email too?








Put this between your HEAD-tags:
<script LANGUAGE="JavaScript">
function go_to_station(){
if (document.stationform.stationselect.options[0].selected){
window.location.href = "mailto:no1@adr.com?subject=Any subject";}
else if (document.stationform.stationselect.options[1].selected)
{ window.location.href = "mailto:no2@adr.com";}
else if (document.stationform.stationselect.options[2].selected)
{ window.location.href = "mailto:no3@adr.com?subject=Any subject";}
else if (document.stationform.stationselect.options[3].selected)
{ window.location.href = "mailto:no4@adr.com";}
return true;
}
function textValue(){
var stationInteger, stationString
stationInteger=document.stationform.stationselect.selectedIndex
stationString=document.stationform.stationselect.options[stationInteger].text
document.stationform.stationtext.value = "You are emailing: " + stationString +"!" }
//-->
</script>

Put this between your BODY-tags:
<p align="center">Who would you like to send an email too?<br>
<br>
</p>
<form NAME="stationform">
<div align="center"><center><p><select NAME="stationselect" onChange="textValue()" SIZE="1">
<option>People 1 </option>
<option>People 2 </option>
<option>People 3 </option>
<option>People 4 </option>
</select> <br>
<br>
<input type="button" name="stationbutton" value="Email!" onClick="go_to_station()"> <br> <br>
<input type="text" name="stationtext" value="Your are emailing: People 1!" size="35" maxlength="35"></p>
</center></div>
</form>

Free JavaScripts provided
by Winfolinx.com

Back