categoryJavaScript

location.href

trackback0  comment0
<script> var opURL = new Array( "http://blog.livedoor.jp/greenwind888-888/", "http://greenwind888.web.fc2.com/" ); function idou(){ var num; num = document.urlName.contents.selectedIndex; location.href = opURL[num]; } </script> <form name="urlName"> <select name="contents" onchange="idou()"> <option>アイドル</option> <option>動画</option> </select> </form>
関連記事
 









        
 
http://greenwind888.blog.fc2.com/tb.php/553-a946d008