爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
快速滚动的文字
快速滚动的文字
日期:2014-05-18 浏览次数:20185 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script language="JavaScript1.2"> /* Cross browser Marquee script- ?Dynamic Drive (www.dynamicdrive.com) For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com Credit MUST stay intact */ //Specify the marquee's width (in pixels) var marqueewidth=300 //Specify the marquee's height var marqueeheight=25 //Specify the marquee's marquee speed (larger is faster 1-10) var marqueespeed=3 //configure background color: var marqueebgcolor="#EAEAEA" //Pause marquee onMousever (0=no. 1=yes)? var pauseit=1 //Specify the marquee's content (don't delete <nobr> tag) //Keep all content on ONE line, and backslash any single quotations (ie: that\'s great): var marqueecontent='<nobr><font face="Arial">欢迎光临 <a href="http://www.k688.com/js.asp">www.k688.com</a>这里有网上最丰富的javascript资源,还有LOGO,教程,flash,字体等各种内容下载!</font></nobr>' ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var iedom=document.all||document.getElementById if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+marqueecontent+'</span>') var actualwidth='' var cross_marquee, ns_marquee function populate(){ if (iedom){ cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee cross_marquee.style.left=marqueewidth+8 cross_marquee.innerHTML=marqueecontent actualwidth=document.all? cross_marquee.offsetWidth : document.getElementById("temp").offsetWidth } else if (document.layers){ ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=marqueewidth+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } lefttime=setInterval("scrollmarquee()",20) } window.onload=populate function scrollmarquee(){ if (iedom){ if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed else cross_marquee.style.left=marqueewidth+8 } else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=marqueewidth+8 } } if (iedom||document.layers){ with (document){ document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') if (iedom){ write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">') write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">') write('<div id="iemarquee" style="position:absolute;left:0;top:0"></div>') write('</div>') } else if (document.layers){ write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>') write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>') write('</ilayer>') } document.write('</td></table>') } } </script> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字放大缩小脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
广电地方营业厅的一句“罚停”,暴露出了他们的本质
马云的SNS之梦有了新目标 收购“微博”
中国联通困局:遭遇OTT宽带4G三大难题
移动联通回应税率改革:短期内收入利润将大减
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
空气污染器市场乱象丛生 选购需慎重
高通拼抢国际芯片市场 联发科海外拓展难安心
苹果售后生态链乱象:供需失衡价钱不一
解读苹果收购Beats背后动机:库克在想什么?
推荐阅读
更多>
P2P平台科迅网疑“跑路” 涉及金额超2700万
Facebook财报前瞻:投资者仍信心不足
前苹果顾问批判iPhone命名:不应加S
电信设备商淘金中国4G:华为中兴领衔
打车软件火了 恶性循环来了
互联网金融一周年:余额宝最接地气,比特币最作死
阿里巴巴上市后雅虎将面临更大的业绩压力
人们为什么总愿尝试新社交网络?
微软与摩托罗拉授权协议涵盖Android和Chrome设备
巧用百度推行系统 突显竞价效果
中国大陆人口13.7亿 光棍越来越多
OPPO创始人陈明永:我们是怎么做营销的
国美痛批网购七宗罪 用短暂盈利输了未来
携程整合去哪儿陷入僵局 欲联手老对手艺龙
微软提示XP只剩365天寿命:用户被绑架?
雷军收买腾讯金山股份:持股比例升至27%
中方抗议美方限购IT设备 紧张关系加剧
NEC拟出售移动效劳子公司NEC Mobile
诺基亚若没加入微软,只不过是另一个HTC而已
首批四款“官方”打车软件发布:均为安卓版本