设为首页
加入收藏
用户帮助
联系我们
网站首页
新闻动态
技术文章
Flash整站
精彩网文
资源下载
视频教程
网上商城
Flash动漫
网页特效
酷站欣赏
BBS论坛
在线工具
留言本站
F-CMS Flash CMS
CXT Flash Cms
SXW Flash CMS
EXW Flash Cms
您的位置:
伊缘网
>>
网页特效
>>
页面特效
查看特效
让层抖动的效果,msn,qq窗体震动效果
[日期:2008-10-5 下午 11:39:48]
[浏览指数:3416]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="zh-cn" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta name="robots" content="all" /> <meta name="author" content="在远方┊jscode.cn" /> <meta name="Copyright" content="copyright (c) 2008 www.jscode.cn" /> <title>让层抖动的效果,msn,qq窗体震动效果 - 网页特效观止-网页特效代码|www.JsCode.CN|</title> <style type="text/css"> #body{text-align:center;} #test{width:200px;position:absolute;margin:10px auto;height:100px;border:2px dotted red;text-align:center} </style> </head> <body> <div style="margin:10px 200px"> <div> <input type="button" value="~~~让我抖抖吧~~" onclick="nn.start()" /></div> <div> <input type="button" value="别抖了眼睛晕的很" onclick="nn.stop()" /></div> <div id="test"> <br> <a href="http://www.jscode.cn">网页特效观止</a><br> <img border="0" src="http://www.jscode.cn/images/logo.gif"></div> </div> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>更多网页特效代码尽在 <a href="http://www.jscode.cn/">网页特效观止</a></p> </body> </html> <script type="text/javascript"> var m=document.getElementById("test"); function SKclass (obj,Rate,speed) { var oL=obj.offsetLeft; var oT=obj.offsetTop; this.stop=null; this.oTime=null; var om=this; this.start=function(){ if(parseInt(obj.style.left)==oL-2){ obj.style.top=oT+2+"px"; setTimeout(function(){obj.style.left=oL+2+"px"},Rate) } else{ obj.style.top=oT-2+"px"; setTimeout(function(){obj.style.left=oL-2+"px"},Rate) } this.oTime=setTimeout(function(){om.start()},speed); } this.stop=function(){ clearTimeout(this.oTime); } } var nn=new SKclass(m,20,70); </script>
特别说明:
如文本框里含有upjs/***.js内容的,请用查看按钮查看演示!
·百度网页特效:
网页特效:让层抖动的效果,msn,qq窗体震动效果
·上个特效:
自动关闭窗口
·下个特效:
仿3721首页模块拖曳移动效果[拖曳层移动层]
相关评论
【特效评论已关闭】
伊缘网
设为首页
加入收藏
|
关于本站
|
联系我们
|
用户帮助
|
友情连接
|
Flash CMS
|
Flash CMS主机
站务广告 QQ:344166517 Email:
moc.nc12@gnise
TEL:0796-6190949 HP:(0)15179677402
Copyright © 2005 - 2010 2ey.cn Inc. All Rights Reserved.
伊缘网 版权所有
赣ICP备11008115号-2