数据处理中……
技术库
|
站长工具
|
技术手册
|
字体库
|
知识点词汇表
|
联系我们
|
打开本页的html静态页面
主菜单
站点首页
技术手册
字体库
知识点 词汇表
站长工具
高级搜索
联系我们
站点地图
文章分类
.Net技术
Asp技术
JSP技术
PHP技术
Silverlight
WEB其它杂谈
WEB制作相关
PhotoShop
网页三剑客
网页特效代码库
WEB技术相关
Windows专区
数据库开发
水晶报表
网站运营知识
网管知识专栏
软件工程
.:
WEB制作相关
.:
网页特效代码库
.:
广告特效代码顶部自动收缩广告特效
输入您的搜索字词
提交搜索表单
热门关键词:
全文内容
发表评论
文章点评
文章附件
Email文章
打印文章
广告特效代码顶部自动收缩广告特效
点击次数:664 创建日期:12-22-2007 录入:
cn-web.com
字体:[
大
中
小
] 点评:
广告特效代码顶部自动收缩广告特效
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312"> <head> <title>顶部收缩广告效果</title> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <meta name="keywords" content="顶部收缩广告效果" /> <script type="text/javascript"> var intervalId = null; function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){ this.stayTime=nStayTime*1000 || 3000; this.maxHeigth=nMaxHth || 90; this.minHeigth=nMinHth || 1; this.state=sState || "down" ; var obj = document.getElementById(id); if(intervalId != null)window.clearInterval(intervalId); function openBox(){ var h = obj.offsetHeight; obj.style.height = ((this.state == "down") ? (h + 2) : (h - 2))+"px"; if(obj.offsetHeight>this.maxHeigth){ window.clearInterval(intervalId); intervalId=window.setInterval(closeBox,this.stayTime); } if (obj.offsetHeight<this.minHeigth){ window.clearInterval(intervalId); obj.style.display="none"; } } function closeBox(){ slideAd(id,this.stayTime,"up",nMaxHth,nMinHth); } intervalId = window.setInterval(openBox,10); } </script> </head> <body style="margin:0;padding:0;font-size:14px;"> <div id="MyMoveAd" style="background:#ff0;height:12px;overflow:hidden;"> <iframe name="google_ads_frame" width="468" height="60" frameborder="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-9186806591725817&dt=1198315984640&lmt=1198315984&output=html&slotname=6945472709&correlator=1198315984640&url=http%3A%2F%2Fwww.cn-web.com%2Fcnweb%2F0%2F460%2Farticle%2F&cc=100&ga_vid=1729948988.1198315985&ga_sid=1198315985&ga_hid=1901916097&flash=8&u_h=768&u_w=1024&u_ah=738&u_aw=1024&u_cd=32&u_tz=480&u_java=true" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"></iframe> </div> <p>代码实例:<strong>顶部自动收缩广告效果</strong> 您可以点击广告观看演示效果</p> <script type="text/javascript"> <!-- slideAd('MyMoveAd',2); --> </script> </body> </html>
请文明参与讨论,禁止漫骂攻击。
评论总数:0
条
[ 查看全部 ]
网友评论
此文章还没有任何评论!
(+5分)
(+4分)
(+3分)
(+2分)
(+1分)
此内容无附件
网站地图
-
知识词汇
-
全文检索
-
广告服务
-
帮助中心
-
联系我们
.:
www.cn-web.com
网站技术开发联盟之WEB开发技术知识库
联系人:老韩(QQ:5679551)
晋ICP备07003487号