>
设为首页
>
收藏本站
>
最新电影
首页
运营资讯
今日英语
图形图像
计算机技术
Asp编程
网站结构化
资源共享
休闲娱乐
访问新站
您现在的位置:
首页
=>
后台技术
=>
脚本特效
=>
文本特效
订阅本栏目
图片间停式无缝滚动
时间: 2009-02-23 13:16:37 阅读次数:3153
<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=800 * 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://news.qq.com/photon/08photojdlm1.htm'></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://news.qq.com/photon/08photojdlm2.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>
提示:您可以先修改部分代码再运行
飞飞Asp技,术乐园
站内搜索
:
标题
内容
下一篇
用层模拟可移动的小窗口
上一篇
字幕滚动效果
本栏目最新
栏目最新列表
用层模拟可移动的小窗口
图片间停式无缝滚动
繁简体文字转换工具
点击会高亮的文字
中文文字的多种排列方式,倒排,倒写竖排,
网站优化策划
栏目最新列表
增加网站外链的快速方法
网站上线前必做的30个检查
新的友情链接参考标准(没有google的PR情况
优化Google的AdSense广告的五个工具
王通讲SEO八大基础
站点最新
站点最新列表
微博推广的一些技巧
xhEditor v1.1.7 发布,
收集的一些轻量级非常实
50个新鲜兼容最新版本的
javascript中cookie的设
Excel中出现#VALUE!、#D
jquery插件:飞飞表情插件
十个使用HTML5开发的精彩
支持HTML5的浏览器有哪些
飞妮莫属:漫画:如何写出
历史最热10条信息
MIME介绍 及
[
1
] [
2
] [
3
]
巧用Google和迅雷来下载
Transact SQL 常
[
1
] [
2
]
VIA Rhine II Fast Ethe
电脑常用端
[
1
] [
2
] [
3
]
Do you get a kick out
十道羊皮卷 欣赏+mp3版+
每日一句:A friend and
每日一句:Theres no tu
经典__悟透JavaScript
伟哥博客
西安房产
123最新电影
三四六四
关于站点
|
免责声明
|
联系站长
|
网站地图
|
陕ICP备07002804号
WEB技术QQ交流群:72840059
©2007 ffasp.com. 版权所有