<title>窗口抖动</title>
<style>
body{margin:50px; }
#qq{position:relative;}
span{padding:0 4px}
</style>
<body>
<img   />
</body>
<script>
mfx=function(isWin){
        var t=0,z=3,del=function(){clearInterval(mfx.ID);return mfx};
        del().ID=setInterval(function(){
            var i=t/180*Math.PI,x=Math.sin(i)*z,y=Math.cos(i)*z,s=qq.style;
            isWin?window.moveBy(x,y):(s.top=x+'px',s.left=y+'px');
            if((t+=90)>1080)del();
        },30);
}
setInterval("mfx()",500);
</script>

 

相关文章:

  • 2022-02-17
  • 2021-11-03
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
相关资源
相似解决方案