You can look at the full documented source
http://twitter.com/javascripts/widgets/widget.js
and could add that facility of you want ("Hosting and modifications of the original source IS allowed."), but there is a simpler way that you can see by inspecting the documented code...
First render a div with a known id
<div id='myTwitterWidget'><img src='loading.gif'/></div>
and then render the widget to that id
TWTR.Widget({
id: 'myTwitterWidget',
... other params here...
}).render()....
and that way, the widget wipes my loader when it renders (ie if you specify an id, the widget will replace the existing contents of that element)
Cheers
--
Tim
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk
No comments:
Post a Comment