Skip to content

Instantly share code, notes, and snippets.

@richhollis
Created February 5, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richhollis/8833339 to your computer and use it in GitHub Desktop.
Save richhollis/8833339 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>test-vticker</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://sdepold.github.io/jquery-rss/src/jquery.rss.js"></script>
<script src="http://richhollis.github.com/vticker/downloads/jquery.vticker.min.js?v=1.14"></script>
<script>
$(function() {
$("#example-vticker").rss("http://news.google.com/?output=rss", {
limit: 4,
entryTemplate: '<li><a href="{url}">{title}</a></li>',
success: function() {
$('#example-vticker').vTicker('init', {speed: 400,
pause: 1000,
showItems: 1,
padding:4});
}
});
$('#next').click(function() {
$('#example-vticker').vTicker('next', {animate:false});
});
$('#prev').click(function() {
$('#example-vticker').vTicker('prev', {animate:false});
});
});
</script>
</head>
<body>
<div id="example-vticker" class="example"></div>
<button id="prev">Prev</button><button id="next">Next</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment