Twitter: grabbing a tweet and styling it for my site

Soldato
Joined
27 Oct 2002
Posts
3,540
Location
At the fulcrum of humdrum
'lo folks.

I'm new to this Twitter malarkey; here's what I want to do:

1. Grab the content of my latest tweet and associated timestamp. Not the avatar, username, the twitter logo or anything else.

2. Style that content to hell and back with good ol' CSS.

3. Plop it onto my website.


I've had a look at their widgets, but the style customisation options are basic at best, and all seem to come with extras to display that I can't switch off from the widget. I just want content and timestamp, goddammit :D

I'd have thought it would be simple, but either my google skills have failed me, or it isn't straightforward at all.

Anyone got any pointers?
 
Add the following code to the bottom of your page:

Code:
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ARMWILSON.json?callback=twitterCallback2&amp;count=5"></script>

Change ARMWILSON to your username.

Then add:

Code:
<h1>My Twitter Feed</h1>
<ul id="twitter_update_list">

</ul>

Then style as you want... (Elements included are <a>, <li> and I believe <span>). Should be enough for you to play with.
 
Back
Top Bottom