테스트 사이트 - 개발 중인 베타 버전입니다

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

· 20년 전 · 1909
<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>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
28772
10555
10554
10553
28770
28769
10552
10551
28768
10550
10549
10548
10547
28767
10546
10545
10544
28766
10541
10540
10538
10537
10535
10534
10533
10532
28760
10531
10530
28759
10527
10525
10523
10520
28758
28757
10519
10518
10517
10515
28756
10514
10512
10511
10510
10509
10508
10507
28755
28751
10506
10505
10504
10503
10499
10487
28748
10486
28747
10484
10483
10482
28746
10480
10476
10473
10472
28745
10460
10456
28739
10455
28738
10451
10448
10446
10445
10444
10442
10439
10408
10403
10400
10398
10397
10396
10391
10390
28733
10389
10383
10378
28732
10342
28731
10335
28730
28729
28727
10332