|
Basics
HTML
Java
Colors
Frames
Tables
Fonts
Graphics
Links
Contact
| |
how do i add a drop down menu
that targets frames?
To be honest, this is java. But I
add it here because the normal drop down menu is HTML.
Copy and paste this code, remember to add your own info where you see bold text,
and also remember to target your frame, you have to change
"yourframename" to your own frame name that you want to target. You
can add more links, I only have 3 listed in this code:
<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
new Object ;
}
}
//-->
</script>
<form name="kathleen3">
<select name="menu" style="background-color: #CC99FF ;
font size=10 ; font-family: comic sans ms; color:#ffff00"
size="1" onchange="jump(this.form)">
<option value="0">Where would you like to go?</option> <--add
a "header" here (don't include this in your code).
<option value="0"></option> <--this
adds a space (don't include this in your code).
<option value="http://butterfly951.cjb.net/">Kathleen's
Pages</option>
<option value="http://www.oocities.org/htmlhelp_be/index.html">Kathleen's
HTML-help etc.</option>
<option value="http://users.pandora.be/louis.verpoorten/index1.html">Site
Index</option>
</select>
</form>
It looks like this:
|