ÀÌ °÷¿¡ ¸¶¿ì½º¸¦ ¿Ã·Á º¸¼¼¿ä
±ÛÀÚ°¡ ¹Ý¦ÀÌ´Â È¿°ú°¡ »ý±é´Ï´Ù. ^^
<SCRIPT language=JavaScript>
<!--
var pause=100
var newcolor=new Array
var timer
var animation_on=true
var thislink
var i_color=0
function startanimation(newlink, c1, c2, c3, c4, c5) {
if (document.all) {
newcolor[0]=c1
newcolor[1]=c2
newcolor[2]=c3
newcolor[3]=c4
newcolor[4]=c5
animation_on=true
thislink=eval("document.all."+newlink+".style")
colorup()
}
}
function colorup() {
if (animation_on && i_color<newcolor.length-1) {
thislink.color=newcolor[i_color]
i_color++
timer=setTimeout("colorup()",pause)
}
else if (animation_on) {
clearTimeout(timer)
timer=setTimeout("colordown()",pause)
}
else {
clearTimeout(timer)
}
}
function colordown() {
if (animation_on && i_color>0) {
thislink.color=newcolor[i_color]
i_color--
timer=setTimeout("colordown()",pause)
}
else if (animation_on) {
clearTimeout(timer)
timer=setTimeout("colorup()",pause)
}
else {
clearTimeout(timer)
}
}
function stopanimation() {
if (document.all) {
animation_on=false
clearTimeout(timer)
}
}
-->
</SCRIPT>
<A onmouseover="startanimation(this.name,'FF0000','FF4444','FF8888','FFBBBB','FFEEEE')"
style="COLOR: #ff8888" onmouseout=stopanimation() href="#" name=sample1>ÀÌ °÷¿¡
¸¶¿ì½º¸¦ ¿Ã·Á º¸¼¼¿ä</A><BR><BR><A onmouseover="startanimation(this.name,'red','green','black','blue','pink')"
style="COLOR: red" onmouseout=stopanimation() href="#" name=sample2>±ÛÀÚ°¡ ¹Ý¦ÀÌ´Â È¿°ú°¡
»ý±é´Ï´Ù. ^^</A><BR><BR></FONT>
|