|
|
|
|
Dropdown
This simple javascript will allow you to put active links into a dropdown
list. The JavaScript, HTML, and an example are provided.
JavaScript (In Header) |
<script language="JavaScript">
function Select(){
if (document.Links.Menu.options[document.Links.Menu.selectedIndex].value != "none")
{
location = document.Links.Menu.options[document.Links.Menu.selectedIndex].value}
}
</script>
|
|
HTML (In Body) |
<form name="Links">
<select name="Menu" onchange="Select()" size="1">
<option value="none" selected>- Quick Navigation -</option>
<option value="index.html">Web Tools</option>
<option value="dropdown.html">Dropdown Navigation</option>
</select>
</form>
|
|
|
|