A lot of JS written text scrolling effect is not compatible, today we provide a browser compatible with multiple browsers to browse the compatible jquery text scrolling effect code.
<meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
<script src= "/jslib/jquery/jquery.js" ></script>
<script type = "text/web Effects" >
function Scroll_news () {
var $firstNode = $ (' #scroll-container Li ');
Get the number of values in I column
var IRow = $ (' #scroll-container '). Find (' Li '). length–1;
Debugger
$ (function () {
$firstNode. EQ (0). fadeout (' Slow ', function () {
$ (this). Clone (). Appendto ($ (this). Parent ()). FadeIn (' slow ');
$ (this). Remove ();
$firstNode. EQ (irow). Hide ();
});
});
}
$ (document). Ready (function () {
Go ();
});
function Stop () {
Clearinterval (SN);
}
function Go () {
sn = setinterval (' Scroll_news () ', 2000);
}
</script>
<style type= "Text/css Tutorial" >
#scroll-container{border:1px #000 solid;background: #FEC; height:23px;line-height:23px;}
#scroll-container li{list-style:none;display:none;font-size:12px;}
Li A{color: #F00; text-decoration:none;margin-left:10px;}
Li A:hover{text-decoration:underline;}
</style>
<body>
<div id= "Scroll-container" onmouseover= "Stop" (); "onmouseout=" Go (); " >
<li><a href= "#" > Life so once </a></li>
<li><a href= "#" > no longer willing to bow down because of willful </a> </li>
<li><a href= "#" > no longer because stubborn and easy to say goodbye </a> </li>
<li><a href= "#" > Believe once </a> </li>
<li><a href= "#" > A heart needs to be determined to warm another heart </a> </li>
<li><a href= "#" > Keep going </a> </li>
<li><a href= "#" > can go to the bald </a> </li>
<li><a href= "#" > Just like that </a> </li>
<li><a href= "#" > in the fleeting years </a> </li>
<li><a href= "#" > Years well </a> </li>
<li><a href= "#" > Wish This Life </a> </li>
<li><a href= "#" > Hand </a> </li>
<li><a href= "#" > and the son of the aging </a> </li>
</div>
</body>