鼠标图片振动代码

时间:2021-05-25

<!--代码开始--!>
<!---YeJun2605.AnyP.cn-//-->
<!---这里只是在图片里加了一点代码进去认真看看--!><P><Atitle=一切网络资源尽在建站资源情感梦,情感一角欢迎光临!href="http://yejun2605.anyp.cn/"target=_blank><FONTcolor=#0099ff><FONTsize=3><IMGclass=shakeimageonmouseover=init(this);rattleimage()style="LEFT:3px;TOP:0px"onmouseout=stoprattle(this)height=31src="http://photoimg2.qq.com/cgi-bin/load_pic?verify=%2B90QvPrpA8dALudY1xuzgA%3D%3D"border=0>

<!--下面的代码在同一页面只要一个就行了--!>
<STYLE>.shakeimage{POSITION:relative}</STYLE>

<SCRIPTlanguage=JavaScript1.2>
<!--
varrector=3
varstopit=0
vara=1
functioninit(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
functionrattleimage(){
if((!document.all&&!document.getElementById)||stopit==1)
return
if(a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
elseif(a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
elseif(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)
}
functionstoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
//-->
</SCRIPT>

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章