Jquery xMarquee enables seamless scrolling at the text level
- 2020-03-30 02:47:37
- OfStack
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201404/201404291539192.gif? 2014329153931 ">
CSS
js
HTML
Text scrolling is so easy
(link: http://xiazai.jb51.net/201406/yuanma/xMarquee (jb51.net). Rar)
This article is from: CSDN alpine and water blog
CSS
<style>
.xMarquee{border:1px solid #ccc;height:25px;width:500px; margin:50px auto; background:#ffffff; overflow:hidden;}
.xMarquee ol{list-style-type:none; margin:0px; padding:0px; font-size:12px; width:100000%;}
.xMarquee ol li{float:left;}
.xMarquee ol li a{ color:#000; text-decoration:none; line-height:25px;}
.xMarquee ol li a:hover{ text-decoration:underline;}
</style>
js
<script src="xMarquee.js" type="text/javascript"></script>
<script>
$(function(){
$("#x1").xMarquee();
$("#x2").xMarquee({temp:2,backMarquee:'backMarquee'});
})
function backMarquee(id,con){
$("#backMarquee").html(id+"::::::::::::::::::::"+con);
}
</script>
HTML
<div id="x1" class="xMarquee">
<ol>
<li><a href="" >♠ China Mobile </a></li>
<li><a href="" >♠ Two-way audio </a></li>
<li><a href="" >♠ 360 The voice recording is better now </a></li>
<li><a href="" >♠ China Mobile </a></li>
<li><a href="" >♠ Two-way audio </a></li>
<li><a href="" >♠ 360 The voice recording is better now </a></li>
</ol>
</div>
<div id="x2" class="xMarquee">
<ol>
<li><a href="" >♠ China Mobile </a></li>
<li><a href="" >♠ Two-way audio </a></li>
<li><a href="" >♠ 360 The voice recording is better now </a></li>
<li><a href="" >♠ China Mobile </a></li>
<li><a href="" >♠ Two-way audio </a></li>
<li><a href="" >♠ 360 The voice recording is better now </a></li>
</ol>
</div>
Text scrolling is so easy
(link: http://xiazai.jb51.net/201406/yuanma/xMarquee (jb51.net). Rar)
This article is from: CSDN alpine and water blog