I have successfully set up my twitter callback on my webpage and everything is working perfectly.
The only thing I would like to do but cannot seem to figure out how is put a line break (or two) between the content of the tweet and the time stamp. For example:
“Hello this is a tweet. 11mins ago”
“Hello this is a tweet.
11mins ago”
This is the script I am using.
<div id="twitter_update_list">
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js">
</script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1">
</script>
Any suggestions please?
You have different options.
First alternative. See the HTML code generated and try to set a CSS style to the “a” element that halds the time.
Second is to modify the code on http://twitter.com/javascripts/blogger.js to generate a different set of DOM elements. Check: http://jsfiddle.net/6eeBM/1/
I have modified slightly the callback function to add a .