 |
|
|  |
|
 |
19년 전 |
이 곳에 마우스를 올려 보세요
글자가 반짝이는 효과가 생깁니다. ^^
<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>
|
|
추천 : 496 |
추천
목록
|
|
|  |
|