<style>
.shakeimage
{
position:relative
}
</style>
<script>
var rector=3
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()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>
그 다음 스크립트는 넣었으면 <body></body>안에 있는 이미지중 스크립트를 적용시킬 이미지를 찾아서 이미지 태그안에 이렇게 추가합니다. <class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)">
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4040 | |
| 29 |
아우겐나이스
|
21년 전 | 4431 | |
| 28 |
아우겐나이스
|
21년 전 | 3454 | |
| 27 | 21년 전 | 5819 | ||
| 26 | 21년 전 | 3090 | ||
| 25 | 21년 전 | 6069 | ||
| 24 | 18년 전 | 3642 | ||
| 23 | 21년 전 | 3629 | ||
| 22 | 21년 전 | 4238 | ||
| 21 | 21년 전 | 3812 | ||
| 20 | 21년 전 | 4210 | ||
| 19 | 21년 전 | 6671 | ||
| 18 | 21년 전 | 4729 | ||
| 17 | 21년 전 | 6977 | ||
| 16 | 21년 전 | 4164 | ||
| 15 | 21년 전 | 2620 | ||
| 14 | 21년 전 | 4961 | ||
| 13 | 21년 전 | 3394 | ||
| 12 |
Recluse
|
21년 전 | 3866 | |
| 11 |
아우겐나이스
|
21년 전 | 3561 | |
| 10 |
Recluse
|
21년 전 | 3387 | |
| 9 | 21년 전 | 3970 | ||
| 8 | 21년 전 | 5155 | ||
| 7 | 21년 전 | 4753 | ||
| 6 | 21년 전 | 5669 | ||
| 5 | 21년 전 | 4104 | ||
| 4 | 21년 전 | 4826 | ||
| 3 | 21년 전 | 4733 | ||
| 2 | 21년 전 | 3232 | ||
| 1 | 22년 전 | 4333 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기