Thursday, July 9, 2009

Adding Twitter feed widget to your Website

Would you want to have the Twitter feed on your Website, like the one in the right margin of this site?

Paste the following code in your blog as HTML/JavaScript element. Replace 'chicago-gtug' with what your interests are.

<script language="javascript">
/* widget config */
var jtw_divname = 'jtw_widget1';
var jtw_search = 'chicago-gtug';
var jtw_width = '250px';
var jtw_height = '480px';
var jtw_scroll = 'yes';
var jtw_widget_background = '#FFFFFF';
var jtw_widget_border = '1px solid #DDDDDD';
var jtw_center_widget = 'yes'; /* tweet styling */
var jtw_tweet_textcolor = '';
var jtw_tweet_background = 'url(./img/greygrad.png) repeat-x #fff';
var jtw_tweet_newbackground = '#ffe';
var jtw_tweet_border = '1px solid #DDDDDD';
var jtw_tweet_margin = '3px';
var jtw_tweet_fontsize = '12px';
var jtw_hide_img = ''; /* search and display config */
var jtw_pre_html = '<center><b>Twitter: #Chicago-GTUG</b></center>';
var jtw_post_html = ''; var jtw_mid_html = '';
var jtw_num_tweets = '5'; var jtw_tweet_lang = 'en';
var jtw_widget_refresh_interval= 10;
</script>
<script src="http://tweetgrid.com/widget/widget.js" type="text/javascript"></script>