:
JQuery news ticker is a very convenient jQuery plug-in that allows you to quickly generate such a news market effect.
It can generate news content through the list, HTML, and even RSS (only the RSS feed of this site can be loaded), and supports back and forth playback and stop. This plug-in supports a series of custom options, such:
Playback speed
Playback Effect
Playback direction
Display time
Code development is simple and efficient.
First introduce the jQuery news ticker class library and its jQuery Class Library:
Copy codeThe Code is as follows:
<Link href = "css/ticker-style.css" rel = "stylesheet" type = "text/css"/>
<Script src = "jquery. ticker. js" type = "text/javascript"> </script>
HTML code:
Copy codeThe Code is as follows:
<Div id = "ticker-wrapper" class = "no-js">
<Ul id = "js-news" class = "js-hidden">
<Li class = "news-item"> <a href = "#"> This is the 1st latest news item. </a> </li>
<Li class = "news-item"> <a href = "#"> This is the 2nd latest news item. </a> </li>
<Li class = "news-item"> <a href = "#"> This is the 3rd latest news item. </a> </li>
<Li class = "news-item"> <a href = "#"> This is the 4th latest news item. </a> </li>
</Ul>
</Div>
Javascript:
Copy codeThe Code is as follows:
<Script type = "text/javascript">
$ (Function (){
$ ('# Js-News'). ticker ();
});
</Script>
Official Website http://www.gbin1.com/technology/jquerynews/20111105jquerypluginnewsticker/demo.html
Download Related Files