Drop-down menu help (urgent)?
I’m using this code to display a drop-down menu on a site of mine, I don’t know a lot of Javascript but this is what I want for the site:
<script language="JavaScript">
<!– Hide the script from old browsers –
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != 0) {
location=form.select1.options[myindex]Value;}
}
//–>
</SCRIPT>
<FORM NAME="form1">
<SELECT NAME="select1" onChange="surfto(this.form)"
SIZE=1>
<OPTION SELECTED VALUE=0> —– Coming Soon —–
<OPTION VALUE="url to another page">Bio</OPTION>
<OPTION VALUE="url to another page">What is hypnosis?</OPTION>
<OPTION VALUE="url to another page">How does hypnosis work</OPTION>
<OPTION VALUE="url to another page">How hypnotherapy can help you</OPTION>
</SELECT>
</FORM>
What code do I need to add or remove to make all the text into normal hyperlinks but in that drop-down menu?
I tried that it doesn’t do anything
take everything the easy way….i will try to be brief but just bear with me….i came across the one site that build free CSS navbars for you to download…it includes the HTML code alond with the CSS fir the navbar…take a look at it…cssmenubuilder.com/home…they have tons of premade templates and you dont have to sign up or anything..just create…copy and paste and you are done!!!
hope this helped
::lakerskp21::
OPTION VALUE="url to another page">Bio</OPTION>
replace the ‘url to another page’ with the url of that other page, and then i think it would work fine.
References :
take everything the easy way….i will try to be brief but just bear with me….i came across the one site that build free CSS navbars for you to download…it includes the HTML code alond with the CSS fir the navbar…take a look at it…cssmenubuilder.com/home…they have tons of premade templates and you dont have to sign up or anything..just create…copy and paste and you are done!!!
hope this helped
::lakerskp21::
References :