Posted By

tomdowning on 10/11/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Beppoi


Twitter Feed


 / Published in: jQuery
 

  1. var loadTweets = $("<p id='loading'>Loading...</p>");
  2. $('#twitter_title a').append(loadTweets);
  3. $.getScript("http://twitter.com/javascripts/blogger.js");
  4. $.getScript("http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=7", function() {
  5. $(loadTweets).hide();
  6. $("#tweets").jCarouselLite({
  7. vertical: true,
  8. hoverPause:true,
  9. visible: 1,
  10. scroll: 1,
  11. auto:5000,
  12. speed:1000,
  13. wrap: 'last'
  14. });
  15. });
  16.  
  17. var timeout = setTimeout(function() {
  18. if ($("#twitter_update_list li").text()=="") {
  19. $("#twitter_update_list li").text("Sorry, but we were unable to load the Twitter feed");
  20. }
  21. }, 10000);

Report this snippet  

You need to login to post a comment.