View Full Version : Drop down menu not working


Rosekeet
01-21-2003, 11:30 PM
My drop down menu isn't working... http://www.angelfire.com/weird2/pinksonata/

<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="iframe.html");
}
}
//-->
</script>

<form name="lissamenu2">
<select name="menu" style="background-color: #FF33CC ;
font size=10 ; font-family: comic sans ms; color:#FFFFFF"
size="1" onchange="jump(this.form)">
<option value="0"><b>Information</b></option>
<option value="0"></option>
<option value="http://www.angelfire.com/weird2/pinksonata/characterprofiles/characterprofiles.html">Character Profiles</option>
<option value="http://www.angelfire.com/weird2/pinksonata/SakuraSyaoran/s+s.html">Sakura and Syaoran Section</option>
<option value="http://www.angelfire.com/weird2/pinksonata/Other/lyrics.html">Lyrics</option>
<option value="http://www.angelfire.com/weird2/pinksonata/Other/summary.html">Anime</option>
</select>
</form>

Alcy
01-22-2003, 12:37 AM
You just didn't target properly :)

<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="inlineframe");
}
}
//-->
</script>

here (http://www.lissaexplains.com/fun.shtml#dropframe)

Rosekeet
01-22-2003, 12:55 AM
OH. I see! hehe... Thanks a bunch! I get it now!