爱易网
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 浏览次数:20229 次
以下是程序代码
<!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
上一篇:狡猾的按钮特效
下一篇:鼠标滑过时改变文字
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
神奇约炮应用被禁 改名后重返苹果应用商店
火狐手机发展前路:或被运营商绑架
传4G牌照国庆节前后发放 TD-LTE制式优先
揭秘:阿里巴巴“无人认领”的三成股权都归谁
微软最后的救命稻草Win 8份额继续上升
英特尔IDF峰会启示:释放移动互联的信号
新闻早8点》Facebook失手发布Snapchat类应用
苹果CEO抱歉解读:是战略而非“屈服”
全球网络遭史上最大规模攻击:攻击数据每秒300G
推荐阅读
更多>
雅安地震救灾前线的科技之手 微弱而暖和
中移动一季度净利大降:手机补贴增长过快
窗口期:还有哪些互联网公司可能今年IPO?
Twitter收购印度手机营销公司ZipDial
三星起诉LG在冰箱广告中玷污其企业笼统
HDS发布《2013中国CIO洞察白皮书》
诺基亚因充电器问题暂停销售Lumia 2520平板电脑
京东确定IPO定价区间 最高募资16.9亿美元
逆转猜想:如果阿里成为雅虎大股东会怎样?
小米年度发布会遭围剿!多款新品难阻品牌危机
传三星为赢得新兴市场:推廉价版Note3
苹果大中华区业绩回暖 中移动贡献或低于预期
解析2014年阿里百度等五大互联网巨头深度布局
iPhone 6将于10月17日内地上市:售5288元起
云储存有多远:跨过数据安全问题即可到达
中移动五大基地将整改成公司:被指易滋生腐败
HTC手机为何一败再败?效果出在供应链
NoomWeight减肥
组建铁塔公司倒逼运营商改革 或加速4G网建设
用户喊话当当网:我彻底把你们丢弃了