顶部展出的大幅广告的JS
来源:互联网 发布:编写python的工具 编辑:程序博客网 时间:2024/04/27 17:36
<!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 content="text/html; charset=utf-8" http-equiv="content-type" /> <title>顶部展出的大幅广告</title> <script type="text/javascript" language="javascript"> (function(window){ function _HY(id){ return document.getElementById(id); } function _Show(opt){ if(opt.CurrentHeight<opt.Height){ opt.CurrentHeight=opt.CurrentHeight+opt.loadSpeed; _HY(opt.eid).style.display = ""; _HY(opt.eid).style.height = opt.CurrentHeight+"px"; setTimeout(function(){ _Show(opt); },50); }else{ setTimeout(function(){ _Hide(opt);},opt.RetentionTime); } } function _Hide(opt){ if(opt.CurrentHeight>0){ opt.CurrentHeight=opt.CurrentHeight-opt.loadSpeed; _HY(opt.eid).style.height = opt.CurrentHeight+"px"; setTimeout(function(){ _Hide(opt); },50); }else{ _HY(opt.eid).style.display = "none"; } } var _TiggerAds=function(_eid,_Height,_loadSpeed,_RetentionTime){ var _opt={eid:_eid,Height:_Height,loadSpeed:_loadSpeed,RetentionTime:_RetentionTime,CurrentHeight:0}; _Show(_opt); } window.TiggerAds=_TiggerAds; })(window); window.onload = function() { //参数说明:元素的ID,广告高度,显示隐藏的速度,显示后停留时间 TiggerAds('ads',600,60,7000); } </script> <script type="text/javascript" language="javascript"> </script></head><body> <form id="form1" runat="server"> <div id="ads" style="margin:auto; display:none; width:1002px; top:0px; height:0px; border:solid 1px #000; background-color:#fafafa; overflow:hidden; text-align:center;"> </div> <div style="margin:auto; width:1002px; height:200px; border:solid 1px #000; background-color:#fafafa; text-align:center;"> 网站主体内容 </div> </form></body></html><a href="http://blog.csdn.net/nnsword">魂宇工作室</a>
- 顶部展出的大幅广告的JS
- 顶部展出的大幅广告
- 像163网站顶部展出的大幅广告
- 像163网站顶部展出的大幅广告
- 仿网易官网顶部展出的大幅广告代码,附效果演示
- 延时关闭的顶部广告
- jQuery 实现顶部大幅滚动下拉广告效果
- JS大幅卷屏广告代码
- 页面顶部的广告,自动消失
- js 简易的回到顶部。
- js 回到顶部的实现
- js返回顶部的封装
- js 是实现顶部弹出广告
- 发的发生大幅
- convinientbanner顶部广告轮播控件的使用
- 判断手机滑动到顶部和顶部的js.
- 兼容的漂浮广告(js)
- 一段漂浮广告的js
- ns2的trace文件分析过程
- myeclipse中添加schema配置文件
- 2012 年取公积金
- javascript质数判断
- NS2中tcl脚本文件分析(转)
- 顶部展出的大幅广告的JS
- oracle常见问题
- 魔法心力 全在一念之间
- [翻译]NS下添加新协议
- 关于移动互联网:十个你不知道的惊人事实(绝)
- 肖特基二极管作用
- 黑马程序员---初识java之语句与函数
- Beat
- NS的调试