Compatible multi-browsing jquery text scrolling effect code

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.