koden er også her
<form name="a294" >
<select name="a969" size="1" style="background-color:#FFFFD7" onChange="displaydesc(document.a294.a969.selectedIndex)">
<option selected value="
http://www.javascriptkit.com">JavaScript Kit </option>
<option value="
http://freewarejava.com">Freewarejava.com</option><option value="
http://wired.com" target="newwin">Wired News</option>
<option value="
http://www.news.com">News.com</option><option value="
http://www.codingforums.com" target="newwin">Coding Forums</option>
</select>
<input type="button" value="Go"
onClick="jumptolink(document.a294.a969.selectedIndex)"><br>
<span id="descriptions" align="left" style="font:italic 13px Arial">
</span>
</form>
<script>
/***********************************************
* Drop down menu w/ description- © Dynamic Drive (
www.dynamicdrive.com)
* This notice must stay intact for use
* Visit
http://www.dynamicdrive.com/ for full source code
***********************************************/
//CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
var textdisplay=new Array()
textdisplay[0]="Comprehensive JavaScript tutorials and over 400+ free scripts"
textdisplay[1]="Direct link to hundreds of free Java applets online!"
textdisplay[2]="Up to date news on the technology front"
textdisplay[3]="News.com- The #1 technology News site."
textdisplay[4]="Web Coding and development forums"
function jumptolink(what){
var selectedopt=document.a294.a969.options[what]
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value)
else
window.location=selectedopt.value
}
function displaydesc(which){
if (document.all)
descriptions.innerHTML=textdisplay[which]
else if (document.getElementById)
document.getElementById("descriptions").innerHTML=textdisplay[which]
}
displaydesc(document.a294.a969.selectedIndex)
document.a294.a969.options[0].selected=true
</script>