跟随鼠标的弹性效果的运动图片

跟随鼠标的弹性效果的运动图片,第1张

跟随鼠标的弹性效果的运动图片,第2张



网页特效|Linkweb.cn/Js|---跟随鼠标的弹性效果的运动图片


<script language="JavaScript1.2">
var stringcolor="white"
var ballsrc="https://www.qiqixi.com/img.php?pic=images/flag.gif" //改为自己的图片路径及名称
if (document.all&&window.print){
document.write('跟随鼠标的弹性效果的运动图片,第3张')
ddx=0;ddy=0;PX=0;PY=0;xm=0;ym=0
OmW=Om.width/2;OmH=Om.height/2
}
function Ouille(){
x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100))
y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100))
Om.style.left=x-OmW
Om.style.top=y-OmH
elastoc.to=x+","+y
elastoc.strokecolor=stringcolor
setTimeout("Ouille()",1)
}
function momouse(){
xm=window.event.x+5
ym=window.event.y+document.body.scrollTop+15
elastoc.from=xm+","+ym
}
if(document.all&&window.print){
code=""} else {
code=""}
if(document.all&&window.print){
document.body.insertAdjacentHTML("afterBegin",code)
document.onmousemove=momouse
Ouille()
}
</script>

位律师回复
DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
白度搜_经验知识百科全书 » 跟随鼠标的弹性效果的运动图片

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情