請問:下拉式菜單中的選項(xiàng)能否做超鏈接或怎么做?
發(fā)表時(shí)間:2024-06-13 來源:明輝站整理相關(guān)軟件相關(guān)文章人氣:
[摘要]面的代碼是中國微軟的代碼,你可以參考著寫。 <script LANGUAGE="JavaScript"> <!-- function load(form) var url = form.list.options[form.list.selectedIndex...
面的代碼是中國微軟的代碼,你可以參考著寫。
<script LANGUAGE="JavaScript">
<!--
function load(form) {
var url = form.list.options[form.list.selectedIndex].value;
if (url != "") open(url, "_self");
return false;
}
// -->
</script>
<form NAME="menu" onSubmit="return load(this)">
<p><select id="select2" name="list" onChange="load(this.form)" size="1" class="90V" style="background-color: rgb(196,226,103)">
<option selected > ** 免費(fèi)下載 **</option>
<option value="/china/msdownload/">軟件下載首頁</option>
<option value="/china/msdownload/nt.htm">Windows NT </option>
<option value="/china/msdownload/office.htm">Office</option>
<option value="/china/msdownload/dwnie5.htm">Internet Explorer</option>
<option value="/china/msdownload/wince.htm">Windows CE SDK</option>
<option value="/china/msdownload/pinyin.htm">微軟拼音輸入法</option>
<option value="/china/msdownload/y2k.htm">Year2000 相關(guān)程序</option>
<option value="/china/msdownload/backoffice.htm">BackOffice</option>
<option value="/china/msdownload/seminar.htm">微軟活動講座資料 </option>
</select></p>
</form>
(出處:熱點(diǎn)網(wǎng)絡(luò))