If you have a news website, it might be interesting for you to allow your users to see the latests tweets about a topic. Here is a jQuery plugin for showing the latest tweets about a certain word or phrase.
For this plugin we are using the jQuery Twitter Search Plugin.
Words or phrases that you want to be searched for in Twitter, are wrapped with the following span:
<
span
class
=
"twitter_search"
>Some search term</
span
>
The popup box that appears can be dragged and resized. Clicking on the cross will make it disappear. The tweets are constantly being loaded in a predefined time span. This loading stops when the user hovers over the tooltip box.
If you want to configure and restyle the tooltip, you will need to have a look at the configurations of the Twitter Search Plugin. Many parameters can be set here, from style to timings.
$(function() { $('#article').find('.twitter_search').twitterpopup(); });
No comments:
Post a Comment