|
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<title>跳轉菜單</title>
<script language="JavaScript">
function jump()
{
location.href=document.myform.menu1.value;
}
</script>
</head>
<body>
<form name="myform">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="D:/1.jpg" width="190" height="151" border="0"></td>
<td><img src="D:/2.jpg" width="200" height="150" border="0"></td>
</tr>
<tr>
<td><img src="D:/3.jpg" width="188" height="150" border="0"></td>
<td><img src="D:/4.jpg" width="200" height="150" border="0"></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="right">跳轉到九寨溝</td>
<td>
<select name="menu1" onChange="jump()">
<option>---請選擇季節景色---</option>
<option value="spring.htm">春天美景</option>
<option value="summer.htm">夏天一色</option>
<option value="autumn.htm"> 秋天楓葉</option>
<option value="winter.htm">冬天白雪</option>
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
JavaScript技術:JS option location 頁面跳轉實現代碼,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。