※ 選單選擇/說明還可連結 ※
|
<center> <form name="combowithtext"> <select name="example" size="1" onChange="showtext()"> <option value="#">請選擇內容</option> <option value="43.htm">水中倒影</option> <option value="44.htm">水中漣漪</option> <option value="18.htm">慧星游標</option> </select> <input type="button" value="連結" onClick="gothere()"><br> <textarea rows=5 cols=21 wrap="virtual" name="text"></textarea> <script language="javascript"> <!-- var shortcut=document.combowithtext var descriptions=new Array() descriptions[0]="" descriptions[1]="水中倒影展示" descriptions[2]="水中漣漪展示" descriptions[3]="慧星游標展示" shortcut.text.value=descriptions[shortcut.example.selectedIndex] function gothere(){ location=shortcut.example.options[shortcut.example.selectedIndex].value } function showtext(){ shortcut.text.value=descriptions[shortcut.example.selectedIndex] } //--> </script> </form> </center> |