Posted By

somefool on 11/10/08


Tagged

twitter habari


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jsalo
garretjames


twitter code


 / Published in: PHP
 

  1. <script type="text/javascript">
  2. function twitterCallback(obj) {
  3. var id = obj[0].user.id;
  4. document.getElementById('my_twitter_status').innerHTML = obj[0].text;
  5. document.getElementById('my_twitter_status_time').innerHTML = obj[0].created_at;
  6. }
  7. // code from http://www.mikekrisher.com/?p=428
  8. </script>
  9. <span id="twitter_update_list"></span>
  10.  
  11. --
  12. ---
  13. ---
  14.  
  15.  
  16. <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
  17. <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/yourusername.json?callback=twitterCallback2&count=1"></script>
  18.  
  19.  
  20. </body>

Report this snippet  

You need to login to post a comment.