//html
<div class="text">
<div class="textL">
<div class="wraper1">
<p>12321fhuhfkdhfjkdhfjhsfs</p>
<p>22321地方就圣诞快乐会飞的回复你没积分</p>
<p>32321法可适当肥肉头皮那地方突然特个</p>
<p>42321沃尔特Yui离开家会骂你发②YTJHNBV</p>
<p>52321WERTYUIBGNBVCXHYUKVFDRSTYHGBVCdghfgd的复合弓方法不给个</p>
<p>62321个货车给大家了电饭锅和公交卡让他热点图集</p>
<p>72321沃尔听话就不可能的够花就美女出模具厂的是大法官发都发</p>
<p>82321是电饭锅很快就好v程序有同感的非常规你 </p>
</div>
</div>
<div class="textR">
<div class="wraper2">
<p>12321fhuhfkdhfjkdhfjhsfs</p>
<p>22321地方就圣诞快乐会飞的回复你没积分</p>
<p>32321法可适当肥肉头皮那地方突然特个</p>
<p>42321沃尔特Yui离开家会骂你发②YTJHNBV</p>
<p>52321WERTYUIBGNBVCXHYUKVFDRSTYHGBVCdghfgd的复合弓方法不给个</p>
<p>62321个货车给大家了电饭锅和公交卡让他热点图集</p>
<p>72321沃尔听话就不可能的够花就美女出模具厂的是大法官发都发</p>
<p>82321是电饭锅很快就好v程序有同感的非常规你 </p>
</div>
</div>
</div>
//css
<style>
.text {
80%;
margin: 0 auto;
}
.textL,
.textR {
float: left;
height: 200px;
overflow: hidden;
position: relative;
40%;
margin: 0 5%;
background: darkgoldenrod;
}
.wraper1,
.wraper2 {
position: absolute;
top: 0;
left: 0;
100%;
height: auto;
background: pink;
}
p {
height: 30px;
line-height: 30px;
margin:0;
100%;
overflow: hidden;
}
</style>
//js
<script type="text/javascript">
function scroll(className,sizes,speed){
var wraper = $(className);
var ps = wraper.find('p:first');
wraper.animate({'top':"-sizes +'px'"},speed,'linear',function(){
wraper.append(ps).css('top',0);
scroll(className,sizes,speed)
})
}
scroll('.wraper1',30,1500);
scroll('.wraper2',30,1000);
$('.wraper1').on('mouseover',function(){
$(this).stop();
}).on('mouseout',function(){
scroll('.wraper1',30,1500);
})
$('.wraper2').on('mouseover',function(){
$(this).stop();
}).on('mouseout',function(){
scroll('.wraper2',30,1000);
})
</script>