爱易网
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特效
2个同时向上翻滚的文字特效
2个同时向上翻滚的文字特效
日期:2014-05-18 浏览次数:20113 次
以下是程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title></title> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta name="author" content="" /> <meta name="copyright" content="" /> <style type="text/css"> p{margin:0;padding:0} .abc{float:left;font-size:12px;width:230px;height:70px;overflow:hidden; } .efg{float:left;font-size:12px;width:230px;height:168px;overflow:hidden; } </style> <script language="javascript" type="text/javascript"> window.onload=function(){ var o=document.getElementById('box'); var o2=document.getElementById('box2'); window.setInterval(function(){scrollup(o,24,0);scrollup(o2,24,0)},3000) } ///滚动主方法 ///参数:o 滚动块对象 ///参数:d 每次滚屏高度 ///参数:c 当前已滚动高度 function scrollup(o,d,c){ if(d==c){ var t=getFirstChild(o.firstChild).cloneNode(true); o.removeChild(getFirstChild(o.firstChild)); o.appendChild(t); t.style.marginTop="0px"; }else{ c+=2; getFirstChild(o.firstChild).style.marginTop=-c+"px"; window.setTimeout(function(){scrollup(o,d,c)},20); } } //解决firefox下会将空格回车作为节点的问题 function getFirstChild(node){ while (node.nodeType!=1) { node=node.nextSibling; } return node; } </script> </head> <body> <!--====大奖榜==== Start--> <div class="abc"> <div class="abc-box" id="box"> <div class="jplb"> <p class="tit1">1.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">2.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">3.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">4.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">5.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">6.[狐魅小小]</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> </div> </div> <!--====大奖榜==== End--> <br /> <!--====幸运榜 Start====--> <div class="efg"> <div class="efg-box" id="box2"> <div class="jplb"> <p class="tit1">1幸运大奖</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">2幸运大奖</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <div class="jplb"> <p class="tit1">3幸运大奖</p> <p class="tit2">幸运的获得:[苹果IPAD一部黑色鸢尾]</p> </div> <d
上一篇:狡猾的按钮特效
下一篇:鼠标滑过时改变文字
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
天音通信170套餐试商用放号:流量两年不清零
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
传360周鸿祎曾试图阻止百度收购91无线
中移动将推出多项4G资费新政
传4G牌照国庆节前后发放 TD-LTE制式优先
马云自称在美国曾被绑票
苹果App Store被大量刷榜:iTunes账号成帮凶
迅雷高管解读财报:收购快盘可快速融入小米
推荐阅读
更多>
华为任正非:家族成员不会成为接班人
快递企业征收“份子钱” 成全了谁 苦了谁?
iPhone5S组件曝光 印证杀手级功能存在
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
2018年阿里云双11活动如何参加?1折优惠大攻略
苹果30亿美元收购Beats
阿里马云:我觉得互联网还有十年可以做
刘强东向总理建言:打击有组织有规模的售假商家
盛大游戏走向衰落的根源:免费游戏模式惹的祸
工商总局开查电商“七日退货”
联发科享用价钱战 专利难以摆脱高通
中国雅虎邮箱今日关停 由盛及衰的背后
三星已经将Galaxy S5视为失败之作?
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
马斯克的特斯拉能否保持好势头
微软谷歌高层访韩面前:忌惮三星的崛起
中国移动4G资费调整方案6月1日起正式实施
美图手机2问世 三大问题令其市场销量堪忧
欧洲6万人起诉Facebook隐私侵权
百视通:Xbox One汉化获批 游戏迷欢呼吧