<style>body{margin:50px; }#qq{position:relative;}span{padding:0 4px}</style>
<body>
<p><button οnclick="mfx()">QQ窗口抖动</button>
<span></span><button οnclick="mfx(1)">浏览器抖动</button></p>
<img id="qq" src="http://img.photo.163.com/LxlYCVG9Fr4OC8-Z2tcjZQ==/1873215970010589974.jpg" />
</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);
}
</script>
<body>
<p><button οnclick="mfx()">QQ窗口抖动</button>
<span></span><button οnclick="mfx(1)">浏览器抖动</button></p>
<img id="qq" src="http://img.photo.163.com/LxlYCVG9Fr4OC8-Z2tcjZQ==/1873215970010589974.jpg" />
</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);
}
</script>