카

오늘은 어딜 가볼까? 콤보상자 회전후 이동하기

· 2004-11-23 (화) 11:26:10 · 3526
<HTML>
<HEAD>
<TITLE> 이신디 </TITLE>

</HEAD>

<BODY>
<CENTER><H3>오늘은 어디를 가볼까? 무작정 가보자</H3></CENTER>

<!------ 아래의 방식으로 BODY 부분에 스크립트나 태그를 붙여 넣으세요 ------>

<script>

var count=0
function dothis(){
setTimeout("document.wheel.wheel2.selectedIndex =1000",100)
setTimeout("document.wheel.wheel2.selectedIndex =count",200)
setTimeout("document.wheel.wheel2.selectedIndex =1000",300)
setTimeout("document.wheel.wheel2.selectedIndex =count",400)
setTimeout("document.wheel.wheel2.selectedIndex =1000",500)
setTimeout("document.wheel.wheel2.selectedIndex =count",600)
setTimeout("window.location=document.wheel.wheel2.options[document.wheel.wheel2.selectedIndex].value",800)
}

function animate(){
var countfinal=Math.round(Math.random()*(document.wheel.wheel2.length-1))
document.wheel.wheel2.selectedIndex =count
if (count==countfinal){
dothis()
return
}
if (count<document.wheel.wheel2.length)
count++
else
count=0
setTimeout("animate()",50)
}

</script>

<p align=center>

<form method="POST" name="wheel">
<div align="center">
<center>
<p>
<select name="wheel2" size="8">
<option value="http://esindi.com">이신디</option>
<option value="http://www.imbc.com">엠비쒸 홈페이지</option>
<option value="http://www.daum.net">한메일.넷</option>
<option value="http://www.dreamwiz.com">드림위즈</option>
<option value="http://www.myfolder.net">프로그램 다운로드</option>
<option value="http://www.ahnlab.com">안철수 연구소</option>
<option value="http://www.microsoft.com">마이크로 소프트</option>
<option value="http://www.netscape.com">네츠케이프</option>
</select>
</p>

</center></div>

<div align="center">
<center>
<p>
<input type="button" value="!!!!!!!!! 돌아랏 !!!!!!!!" name="B1" onClick="animate()">
</p>
</center>
</div>
</form>

</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>

첨부파일

move.html (1.9 KB) 81회 2005-06-13 14:56
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타
bbbking
05-06-27 조회 8,461
JavaScript 05-06-24 조회 5,617
JavaScript 05-06-24 조회 4,812
기타 05-06-24 조회 5,249
기타 05-06-24 조회 3,311
기타 05-06-24 조회 3,097
기타 05-06-24 조회 4,641
기타 05-06-24 조회 5,088
기타 05-06-24 조회 6,675
JavaScript 05-06-21 조회 8,477
Flash 05-06-20 조회 5,374
기타 05-06-17 조회 6,666
기타 05-06-17 조회 5,284
JavaScript 05-06-17 조회 5,653
기타
bbbking
05-06-16 조회 1.2만
JavaScript 05-06-15 조회 5,955
MySQL 05-06-15 조회 5,987
기타 05-05-04 조회 4,341
JavaScript 05-05-04 조회 4,309
기타 05-05-04 조회 3,723
기타 05-04-26 조회 3,009
기타 05-04-24 조회 3,895
MySQL 05-04-23 조회 5,352
MySQL 05-04-20 조회 6,021
MySQL 05-04-19 조회 1.3만
MySQL 05-04-19 조회 8,172
기타 05-04-14 조회 6,131
기타 05-04-11 조회 5,071
JavaScript 05-04-11 조회 5,411
기타 05-04-11 조회 3,728