爱易网
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 浏览次数:20176 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字放大缩小脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
马云自称在美国曾被绑票
成本效益全兼顾 混合云市场前景显现
充斥着假消息负能量的“秘密”缺乏普适性
电话用户9月实名制:运营商监管受质疑
苹果MacBook Air劣势渐显 或推新产品改变命运
微软觊觎移动互联市场:手机未出渠道先行
百视通:Xbox One汉化获批 游戏迷欢呼吧
华为变阵:任正非调整三大业务布局
中国联通困局:遭遇OTT宽带4G三大难题
推荐阅读
更多>
马云:银行若放开存款利率 余额宝死了也光荣
谷歌欲收买WhatsApp添加砝码 对方否认
微信今天大面积崩溃 腾讯:因光缆施工被挖断
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
云智慧:用大数据实现企业应用性能管理
170号码扎堆上市:手机话费私人定制时代到来?
诺基亚培育低端机市场 迂回战术要挟中华酷联
百度吴恩达:图像和音视频搜索是人工智能新方向
传苹果中移动达成协议:新iPhone兼容TD制式
途牛开盘价9美元 与发行价持平
银联布局二维码支付,“擦边球”生态不能自救
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
玩游戏式的趣味戒烟App:Kwit
小米移动芯片:英伟达退出,终会加强与联发科合作
iSuppli:上网本将于2015年退出市场
柳传志马云陷舆论漩涡:请不要辜负这个时代
诺基亚因充电器问题暂停销售Lumia 2520平板电脑
三星起诉LG在冰箱广告中玷污其企业笼统
金山毒霸安全中心: XP退役后首个高危漏洞来了
永不磨灭的九大尖端编程语言