James Gardner: Home > Blog > 2009 > Grab the Age of Stupid Widget

Grab the Age of Stupid Widget

Posted:2009-11-21 18:45
Tags:JavaScript

I've just written a twitter widget for the Age of Stupid website. You can also embed the stream in your own blog or website with a twitter widget.

Embedding the twitter widget on your own website or blog is really easy but you need to be able to have access to change HTML.

Copy and paste the code below into your HTML page at the place you would like the widget to appear:

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'search',
  search: '#ageofstupid OR #frannyarmstrong OR #1010',
  interval: 6000,
  title: 'Age of Stupid',
  subject: 'Live Feed',
  width: 250,
  height: 300,
  theme: {
    shell: {
      background: '#8ec1da',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#444444',
      links: '#1985b5'
    }
  },
  features: {
    scrollbar: false,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().start();
</script>

See the main widget here. See an example of the one you can embed here.

(view source)

James Gardner: Home > Blog > 2009 > Grab the Age of Stupid Widget