複数のリンク先へジャンプします |
|
■<head>〜</head>内に下記を貼り付けてください。 |
<script language="javascript">
<!--
function LinkSelect(form, sel)
{
adrs = sel.options[sel.selectedIndex].value;
if (adrs != "-" ) location.href = adrs;
}
//-->
</script> |
■<body>〜</body>内に下記を貼り付けてください。 |
<form method="POST" name="selLink">
<select name="selLink" onchange="LinkSelect(this.form,
this)">
<option value="-" selected>List-1</option>
<option value="sample_1.html">sample 1</option>
<option value="sample_2.html">sample 2</option>
<option value="sample_3.html">sample 3</option>
</select> <select name="selLink" onchange="LinkSelect(this.form,
this)">
<option value="-" selected>List-2</option>
<option value="sample_1.html">sample 1</option>
<option value="sample_2.html">sample 2</option>
<option value="sample_3.html">sample 3</option>
</select></form> |