got a couple questions

liunx

Guest
hello i have 2 questions one is how can i get a drop down menu to go to the selected site w/o having to click on "go" i have done this before but no longer have the coding for it and can't remember how it's done...here is thesite (<!-- m --><a class="postlink" href="http://zonehosts.com/disney/formats/format.html">http://zonehosts.com/disney/formats/format.html</a><!-- m -->) so you can look and see what i'm meaning....also i have a couple forms that i want the info e-mailed to me right now they are on my old server and work fine there but i want to move them over to my new page and was wondering how i can go about having them mailed to me other than using mailto: or using the cgi-bin (cause i'm not sure exactly how to use that on this server...someone i know online is letting me use part of their server space for my page and they have told me that every language is supported but ASP). Thanks for all the help.<!--content-->what you need is a javascript for the navigation,<br />
<br />
<br />
<br />
<br />
<br />
1. Paste the coding into the HEAD of your HTML document<br />
2. Add the last code into the BODY of your HTML document --><br />
<br />
<!-- STEP ONE: Copy this code into the HEAD of your HTML document --><br />
<br />
<HEAD><br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<br />
<br />
<!-- Begin<br />
function formHandler(form){<br />
var URL = document.form.site.options[document.form.site.selectedIndex].value;<br />
window.location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/URL;">http://www.htmlforums.com/archive/index.php/URL;</a><!-- m --><br />
}<br />
// End --><br />
</SCRIPT><br />
</HEAD><br />
<br />
<!-- STEP TWO: Paste this code into the BODY of your HTML document --><br />
<br />
<BODY><br />
<br />
<center><br />
<form name="form"><br />
<select name="site" size=1 onChange="javascript:formHandler()"><br />
<option value="">Go to....<br />
<option value="http://www.yahoo.com">Yahoo<br />
<option value="http://www.metacrawler.com">Metacrawler<br />
<option value="http://www.altavista.digital.com">Altavista<br />
<option value="http://www.webcrawler.com">Webcrawler<br />
<option value="http://www.lycos.com">Lycos<br />
<option value="http://javascript.internet.com">JavaScript Source<br />
</select><br />
</form><br />
</center><!--content-->i think with this scrip you will still need the go button...<!--content-->here you go:<br />
click here... (<!-- m --><a class="postlink" href="http://www.a1javascripts.com/form_navigation/drop/drop.html">http://www.a1javascripts.com/form_navig ... /drop.html</a><!-- m -->) <br />
<br />
:P <br />
<br />
ps. I纾
 
Back
Top