setTimeout ÇÔ¼ö ÀÀ¿ë
ÇÔ¼ö f() : FORM ÀÇ TEXT ¹Ù¿¡ ÇöÀç½Ã°£À» º¸¿©ÁÜ
ÇÔ¼ö g() : ù¹ø° À̹ÌÁö¸¦ ³×°¡Áö·Î ¹Ù²Ù¾î º¸¿©ÁÜ
ÇÔ¼ö h() : ÇØ´ç³âµµ¸¦ º¸¿©ÁÖ°í µÎ¹ø° À̹ÌÁö¸¦ ½½¶óÀ̵å·Î º¸¿©ÁÜ
ÇÔ¼ö layer() : ¸¶¿ì½º°¡ ¿Ã¶ó°¡¸é °¨Ãß¾îÁø ¸Þ´º¸¦ º¸¿©ÁÜ
ÇÔ¼ö layer1() : ±×¸²À» ·¹À̾ Ŭ¸¯ÇÏ¸é ¸Þ´º¸¦ °¨Ãß¾îÁÜ
function f(){
today=new Date() --> Date()ÇÔ¼ö¸¦ »ç¿ëÇϱâ À§Çؼ today °´Ã¼»ý¼º
m=today.getMinutes()
b=today.getSeconds()
c=today.getHours()
document.form1.app.value=c+" : "+m+" : "+b
setTimeout("f()",1000) --> 1Ãʸ¶´Ù f()ÇÔ¼ö¸¦ È£Ãâ
}
i=0
function g(){
a=new Array() --> ¹è¿ ¼±¾ð
a[0]="image/button1.gif"
a[1]="image/button2.gif"
a[2]="image/button3.gif"
a[3]="image/button4.gif"
document.images[0].src=a[i] --> ±×¸²ÀÇ °æ·ÎÁöÁ¤
i++
if(i==a.length) {i=0} --> i °¡ ¹è¿ÀÇ Å©±â¿Í °°´Ù¸é i=0 À¸·Î ÁöÁ¤
setTimeout("g()",1000)
}
function h(){
document.images[1].style.right=parseInt(document.images[1].style.right)+1 -->parseInt()´Â ¹®ÀÚ¿À» ¼ýÀÚ·Î º¯È¯
if(parseInt(document.images[1].style.right)==1024)
{document.images[1].style.right=-90}
setTimeout("h()",10)
}
function layer(){
if(parseInt(document.all["aa"].style.left)<-10){
document.all["aa"].style.left=parseInt(document.all["aa"].style.left)+1 --> div "aa" ¸¦ left ·Î 10 ¾¿ À̵¿
setTimeout("layer()",1)
}
}
function layer1(){
if(parseInt(document.all["aa"].style.left)>-70){
document.all["aa"].style.left=parseInt(document.all["aa"].style.left)-1 --> div "aa" ¸¦ left ·Î -10 ¾¿ À̵¿
setTimeout("layer1()",1)
}
}
¿ÞÂÊ ÆûÀÇ À̸§Àº form1 ÅؽºÆ®¹ÙÀÇ À̸§Àº app