标签:
html
<!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" /> <title></title> <style> /* CSS Document */ *{margin:0;padding:0;font-size:12px;} body{ background:none;} input,button,select,textarea{outline:none;} ul,li,dl,ol{list-style:none;} a{color:#666; text-decoration:none;} .box{ width:1000px; margin:0 auto;} .bcon{ width:320px; border:1px solid #eee; margin:30px auto;float: left;margin-right: 10px;} .bcon h1{ border-bottom:1px solid #eee; padding:0 10px;} .bcon h1 b{ font:bold 14px/40px ‘瀹嬩綋‘; border-top:2px solid #3492D1; padding:0 8px; margin-top:-1px; display:inline-block;} .list_lh{ height:400px; overflow:hidden;} .list_lh li{ padding:10px;} .list_lh li.lieven{ background:#F0F2F3;} .list_lh li p{ height:24px; line-height:24px;} .list_lh li p a{ float:left;} .list_lh li p em{ width:80px; font:normal 12px/24px Arial; color:#FF3300; float:right; display:inline-block;} .list_lh li p span{ color:#999; float:right;} .list_lh li p a.btn_lh{ background:#28BD19; height:17px; line-height:17px; color:#fff; padding:0 5px; margin-top:4px; display:inline-block; float:right;} .btn_lh:hover{ color:#fff; text-decoration:none;} .btm p{ font:normal 12px/24px ‘Microsoft YaHei‘; text-align:center;} </style> <script type="text/javascript" src="css/jquery.min.js"></script> <script type="text/javascript"> // JavaScript Document (function($){ $.fn.myScroll = function(options){ var defaults = { speed:40, // rowHeight:24 // }; var opts = $.extend({}, defaults, options),intId = []; function marquee(obj, step){ obj.find("ul").animate({ marginTop: ‘-=1‘ },0,function(){ var s = Math.abs(parseInt($(this).css("margin-top"))); if(s >= step){ $(this).find("li").slice(0, 1).appendTo($(this)); $(this).css("margin-top", 0); } }); } this.each(function(i){ var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this); intId[i] = setInterval(function(){ if(_this.find("ul").height()<=_this.height()){ clearInterval(intId[i]); }else{ marquee(_this, sh); } }, speed); _this.hover(function(){ clearInterval(intId[i]); },function(){ intId[i] = setInterval(function(){ if(_this.find("ul").height()<=_this.height()){ clearInterval(intId[i]); }else{ marquee(_this, sh); } }, speed); }); }); } })(jQuery); </script> <script type="text/javascript"> $(document).ready(function(){ $(‘.list_lh li:even‘).addClass(‘lieven‘); }) $(function(){ $("div.list_lh").myScroll({ speed:40, //数值越大,速度越慢 rowHeight:44 //li的高度 }); }); </script> </head> <body> <div class="box"> <div class="bcon"> <h1><b>领号实时播报</b></h1> <!-- 代码开始 --> <div class="list_lh"> <ul> <li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li> </ul> </div> <!-- 代码结束 --> </div> <div class="bcon"> <h1><b>领号实时播报</b></h1> <!-- 代码开始 --> <div class="list_lh"> <ul> <li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li> </ul> </div> <!-- 代码结束 --> </div><div class="bcon"> <h1><b>领号实时播报</b></h1> <!-- 代码开始 --> <div class="list_lh"> <ul> <li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li><li> <p><a href="" target="_blank" class="a_blue">网游战江湖公测豪华礼包</a></p> </li> </ul> </div> <!-- 代码结束 --> </div> </div> </body> </html>
标签:
原文地址:http://www.cnblogs.com/wzzl/p/5147812.html