日本語
<!-- 下記列代コードを <body> 領域中 --> <style> #sub1, #sub2, #sub3 { 位置: 絶対;左: 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){ Popupselect = eval(docObj + subcat + styleObj) if (submenu) .selectedIndex != 0) { Popupselect.visibility = "hidden" numchoice = submenu.selectedIndex Choice = submenu[ numchoice].value subcategory.value = Choice submenu.selectedIndex = 0 } } function lock() { PerformOnchange = false } 関数ロック解除() { 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.value = Choice cat .focus() } else { openselect(letsopen) lock() } } } // 終了 --> </script> <div align="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 selected value="">-艺术性站点 - <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>