- <img id="win" style='position:relative' src="http://www.uanv.net/web/qq.jpg">
- <br /><br />
- <button onclick="zd()">振动</button>
- <script >
- function zd(u){
- var a=['top','left'],b=0;
- u=setInterval(function(){
- document.getElementById('win').style[a[b%2]]=(b++)%4<2?0:4;
- if(b>15){clearInterval(u);b=0}
- },32)
- }
- </script>
类似qq闪动功能
最新推荐文章于 2020-06-19 09:06:34 发布