Prendendo ispirazione dal sito BBC, jQuery News Ticker, un plugin per jQuery, riproduce un leggero e facile da usare visualizzatore di notizie a scorrimento.
Implementazione
1 2 |
<link href="css/ticker-style.css" rel="stylesheet" type="text/css" /> <script src="jquery.ticker.js" type="text/javascript"></script> |
HTML
1 2 3 4 5 6 |
<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> |
Inizializzazione
1 2 3 4 5 |
<script type="text/javascript"> $(function () { $('#js-news').ticker(); }); </script> |
Download Demo | Sito Web | Autore
pixolo ads