<STYLE TYPE="text/css">
A {text-decoration: none}
a:link{color:000000;}
a:hover{color:#094DAE; }
.just {text-align: justify;}
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
//configure shake degree (where larger # equals greater shake)
var rector=1
///////DONE EDITTING///////////
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",40)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>
<center>
<a href="sample.htm" class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">link</a>
<br><br>
<font class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">link2</font>
A {text-decoration: none}
a:link{color:000000;}
a:hover{color:#094DAE; }
.just {text-align: justify;}
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
//configure shake degree (where larger # equals greater shake)
var rector=1
///////DONE EDITTING///////////
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",40)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>
<center>
<a href="sample.htm" class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">link</a>
<br><br>
<font class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">link2</font>
반응형
'인터넷정보' 카테고리의 다른 글
스르륵 열리는 문서 (0) | 2007.10.17 |
---|---|
가운데 새창열기 (0) | 2007.10.17 |
가운데 새창열기 (0) | 2007.10.17 |
접속할때마다 배경이미지 랜덤 바꾸기 (0) | 2007.10.17 |
접속할때마다 배경이미지 랜덤 바꾸기 (0) | 2007.10.17 |
글자, 이미지등 마우스오버시/클릭시 웨이브효과 (0) | 2007.10.17 |
상태바 애니메이션 (0) | 2007.10.17 |
상태바 애니메이션 (0) | 2007.10.17 |
이동 메뉴 또는 떠있는 레이어 (0) | 2007.10.17 |
이동 메뉴 또는 떠있는 레이어 (0) | 2007.10.17 |