爱易网
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 浏览次数:20142 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字放大缩小脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
NoomWeight减肥
虚拟运营市场躁动:山西煤老板兴味浓重
京东联席董事长赵国庆上市前夕离职
网络视频的几大趋势将成视频玩家躲不开的发力点
云储存有多远:跨过数据安全问题即可到达
刘强东:京东上市融资用于开拓三至六线城市
618首日看京东阿里不同策略,鹿死谁手?
如家撤离同程内情:祸起反水OTA“联盟”?
做大电影,阿里控股公司在港成立影业集团
推荐阅读
更多>
微软史上最大规模裁员,一半诺基亚员工
三大运营商获通知大减营销费 传3年减400多亿
百度对糯米来说到底意味着什么?
电信设备商淘金中国4G:华为中兴领衔
从百度世界大会看大数据
看病也能用支付宝了 马云的又一盘大棋
快播灭了,还有西瓜:视频网站的灰色江湖还在
马斯克的特斯拉能否保持好势头
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
苹果已经允许开发者提交64位应用程序
雷军收买腾讯金山股份:持股比例升至27%
马云自称在美国曾被绑票
传360周鸿祎曾试图阻止百度收购91无线
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
小米打响手机价格战 为米3铺路或另有所图
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
小灵通两年都无信号 顾客起诉联通公司
从3G牌照发放看中国4G规划效果
Android应用审核乱象:诈骗软件冲上排行榜首