中文(繁体)
<!-- 將以下程式碼加入<body>區域 --> <style> #sub1, #sub2, #sub3 {position:absolute;左:480 像素;可見性:隱藏; z-index: 3 } </style> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin catnumber = 3 offset = 150 PerformOnchange = false if (document.all) { docObj = "document.all." styleObj = ".style" } else { docObj = "文檔。" styleObj = "" } function openselect(subcat) { popupselect = eval(docObj + subcat + styleObj) popupselect.visibility = "visible" } function closeselect(submenu,subcat){ Fupselect = evaln(subboo .selectedIndex != 0) { popupselect.visibility = "隱藏" numchoice = submenu.selectedIndex choice = submenu[ numchoice].value subcategory.value = choice submenu.selectedIndexOn 0 } 函式() { PerformOnchange = true } function selectSub(cat) { for (i=1; i <= catnumber; i++) { subcat = "sub" + i popupselect = eval(docObj + subcat + styleObj) popupselect.visibility = "hidden " } if (performOnchange == true) { Letsopen = "sub" + cat.selectedIndex if (Letsopen == "sub0") { Alert("未選擇類別") choice = "- subcategory -" subcategory.value = choice cat .focus() } else { openselect(letsopen) lock() } } } // 結束--> </script> <divalign="center"> <span id="sub1"> <select name="subannounce" onchange ="closeselect(this,'sub1')"> <option selected value="">- 綜合性站點- <option value="新浪網">新浪網<option value="搜狐">搜狐<option value= "網易">網易</select> </span> <span id="sub2"> <select name="subarts" onchange="closeselect(this,'sub2')"> <選項選擇值="">-藝術性站點- <option value="chinamp3">chinamp3 <option value="通海微雕">通海微雕<option value="painting">繪畫</select> </span> <span id="sub3"> <select name ="subsoftware" onchange="closeselect(this,'sub3')"> <option selected value="">- 體育類站點- <option value="中國足球網">中國足球網<option value="中國籃球網">中國籃球網<option value="NBA">NBA <option value="新浪體育">新浪體育</select> </span> <select name="categoria" onmouseover="unlock()" onchange = "selectSub(this)"> <option selected value="">--選擇站點類型-- <option value="綜合性站點">綜合性站點<option value="藝術性站點">藝術性站點<option value = "體育類站點">體育類站點</select><br> <input type="text" name="subcategory" readonly="readonly" value="- 選擇具體站點-"> </div>