数据处理中……
技术库
|
站长工具
|
技术手册
|
字体库
|
知识点词汇表
|
联系我们
|
打开本页的html静态页面
主菜单
站点首页
技术手册
字体库
知识点 词汇表
站长工具
高级搜索
联系我们
站点地图
文章分类
.Net技术
Asp技术
JSP技术
PHP技术
Silverlight
WEB其它杂谈
WEB制作相关
PhotoShop
网页三剑客
网页特效代码库
WEB技术相关
Windows专区
数据库开发
水晶报表
网站运营知识
网管知识专栏
软件工程
.:
WEB制作相关
.:
网页特效代码库
.:
网页广告特效:腾讯新闻中心栏目向上滚动的网页广告特效
输入您的搜索字词
提交搜索表单
热门关键词:
全文内容
发表评论
文章点评
文章附件
Email文章
打印文章
网页广告特效:腾讯新闻中心栏目向上滚动的网页广告特效
点击次数:515 创建日期:1-5-2008 录入:
cn-web.com
字体:[
大
中
小
] 点评:
网页广告特效:腾讯新闻中心栏目向上滚动的网页广告特效
<SCRIPT language=JavaScript> var dde_para = new Array(); var dde_aa = new Array(); var dde_url = document.location.href; var dde_pp = dde_url.split("#")[1]; var jspfile = 1; var para = null; //滚动页面的宽 var scrollwidth = 705; //滚动页面的高 var scrollheight = 120; if(dde_pp!=null && dde_pp.length>0){ dde_para = dde_pp.split("&");} for(i=0; dde_para!=null && i<dde_para.length;i++){ dde_aa = dde_para[i].split("="); eval("var "+dde_aa[0] +"='"+dde_aa[1]+"'");} var car_num = 5; var i=1; //默认滚动时间10秒 var pausebetweenimages=400 * 8; var slideimages=new Array(); //滚动页面1的URL slideimages[0]="<iframe border=0 vspace=0 hspace=0 bgcolor=#888888 Name=union163com align=center marginwidth=0 marginheight=0 framespacing=0 frameborder=0 scrolling=no width="+scrollwidth+" height="+scrollheight+" src='http://www.cn-web.com/ads/googleads.html'></iframe>"; //滚动页面2的URL slideimages[1]="<iframe border=0 vspace=0 hspace=0 bgcolor=#888888 Name=union163com align=center marginwidth=0 marginheight=0 framespacing=0 frameborder=0 scrolling=no width="+scrollwidth+" height="+scrollheight+" src='http://www.cn-web.com/ads/bdun.htm'></iframe>"; function move1(whichdiv){ tdiv=eval(whichdiv) if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=car_num){ tdiv.style.pixelTop=0 setTimeout("move1(tdiv)",pausebetweenimages) setTimeout("move2(second2)",pausebetweenimages) return} if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){ tdiv.style.pixelTop-=car_num setTimeout("move1(tdiv)",50)} else{ tdiv.style.pixelTop=scrollheight tdiv.innerHTML=slideimages[0] if (i==slideimages.length-1) i=0 else i++}} function move2(whichdiv){ tdiv2=eval(whichdiv) if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=car_num){ tdiv2.style.pixelTop=0 setTimeout("move2(tdiv2)",pausebetweenimages) setTimeout("move1(first2)",pausebetweenimages) return} if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){ tdiv2.style.pixelTop-=car_num setTimeout("move2(second2)",50)} else{ tdiv2.style.pixelTop=scrollheight tdiv2.innerHTML=slideimages[1] if (i==slideimages.length-1) i=0 else i++}} function conmouse(){car_num=0;} function cmouseout(){car_num=5;} function startscroll(){ if (document.all){ move1(first2) second2.style.top=scrollheight } else if (document.layers){ move1(document.main.document.first) document.main.document.second.top=scrollheight+5 document.main.document.second.visibility='show'}} //--> </SCRIPT> <ILAYER id=main height="&{scrollheight};" width="&{scrollwidth};"> <LAYER name="first" left="0" top="1" width="&{scrollwidth};" id=first> <SCRIPT language=JavaScript1.2> if (document.layers) document.write(slideimages[0]) </SCRIPT> </LAYER> <LAYER id=second width="&{scrollwidth};" top="0" left="0" visibility="hide"> <SCRIPT language=JavaScript1.2> if (document.layers) document.write(slideimages[1]) </SCRIPT> </LAYER> </ILAYER> <script language=JavaScript1.2> if (document.all){ document.writeln('<span id="main2" style="position:relative;width:'+scrollwidth+';height:'+scrollheight+';overflow:hiden;background-color:#ffffff">') document.writeln('<div onMouseOver="conmouse()" onMouseOut="cmouseout()" style="position:absolute;width:'+scrollwidth+';height:'+scrollheight+';clip:rect(0 '+scrollwidth+' '+scrollheight+' 0);left:0;top:0">') document.writeln('<div id="first2" style="position:absolute;width:'+scrollwidth+';left:0;top:1;">') document.write(slideimages[0]) document.writeln('</div>') document.writeln('<div id="second2" style="position:absolute;width:'+scrollwidth+';left:0;top:0">') document.write(slideimages[1]) document.writeln('</div>') document.writeln('</div>') document.writeln('</span>')} startscroll(); </script>
请文明参与讨论,禁止漫骂攻击。
评论总数:0
条
[ 查看全部 ]
网友评论
此文章还没有任何评论!
(+5分)
(+4分)
(+3分)
(+2分)
(+1分)
此内容无附件
网站地图
-
知识词汇
-
全文检索
-
广告服务
-
帮助中心
-
联系我们
.:
www.cn-web.com
网站技术开发联盟之WEB开发技术知识库
联系人:老韩(QQ:5679551)
晋ICP备07003487号