爱易网
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 浏览次数:20179 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字放大缩小脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
小微型IDC云化趋势加剧 云计算未来或现终极模式
快递企业征收“份子钱” 成全了谁 苦了谁?
金山毒霸安全中心: XP退役后首个高危漏洞来了
评论:阿里为什么不试着收购一家香港媒体呢
云智慧:用大数据实现企业应用性能管理
屌丝程序猿发家机会来了 用大数据来做生意!
568倍PE,“长跑者”亚马逊的高估值之谜
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
迅雷再次在美提交IPO申请
推荐阅读
更多>
百度“全网寻人”面前的互联网信息枢纽价值
苹果20年以来首次发债 融资170亿美元
淘宝公布新规:升级售假卖家惩罚力度
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
华为坚持不上市究竟为何?不差钱也不想冒风险
屌丝程序猿发家机会来了 用大数据来做生意!
三星维修新规:Galaxy S4主板进水也收费修
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
优酷土豆携手新浪微博 谋攻移动视频失地
携程收买酷讯成定局:转型互联网+投资
中电信率先推移动转售业务 中下旬批量上市
高通拼抢国际芯片市场 联发科海外拓展难安心
京东很忙:升服务推产品更新招股书 能赶在阿里前上市?
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
微信将商场O2O战火烧到了阿里巴巴老家
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
云智慧:用大数据实现企业应用性能管理
微软确认 Surface 计划更多尺寸和LTE 版本
刘强东:京东上市融资用于开拓三至六线城市
美国政府关门可能影响去哪儿等公司IPO