Here's an example from Case-Hardened JavaScript, the Twitterati badge.
Just to the right (if you're using an A-grade browser, and if my outside host at r8ar.com stands up under the load) you ought to see a Twitter badge. If you'd like to try it out, feel free ... but please understand that it's running on a host that will undoubtedly crack under any real strain.
user : defaults to my account, kentbrew.height : defaults to 350width : defaults to 250border : defaults to 2px solid bluebackground : defaults to white; if you set evenBackground, oddBackground, and headerBackground, you won't see it at all.userBorder : defaults to 1px dashed grayuserColor : defaults to whatever link color's on your pageheaderBackground : defaults to your main background.headerColor : defaults to black.evenBackground : defaults to your main background.oddBackground : defaults to gray.friends_timeline, and happen to request the same user id you saw here, you might get another copy of your cached call, with my callback twitBack and not the other guy's. [UPDATE: Al3x responded very quickly, and is looking into it.]It's much more interesting with your own Twitter id in the badge, but if you'd like to stalk[H[H[[H[H follow along with ijustine, here's how you'd do it:
<script type="text/javascript" src="http://r8ar.com/twitterati.js">
{
"user" : "ijustine",
"height" : "400",
"width" : "250",
"border" : "1px solid black",
"background" : "pink",
"evenBackground" : "pink"
}
</script>
To try it out, stick this bit into your page, right where you'd like the badge to show up. Whitespace doesn't matter; please feel free to put it all onto a single line if you like.
Most of all, have fun, and please let me know how it goes.