Thursday, October 8, 2009

Create a Twitter widget yourself !!

You may have seen a lot of websites, which show their recent tweet.You may have also wanted to put a similar widget to your website also. But most of the time, you use widget provided by others, which are less custimizable and may have some sort of ad or link to other websites on it.

Have you ever wondered how to create yourown customizable widget?

Please follow a few simple ways and you can create a simple customizable tweet widget to put in your website or blog.

Step 1:

<div id="twitter_update_list">

</div>

Copy the above code in the area where you need to put your tweets.

Step 2 :

Copy the following code below the previous code.

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js">

</script>

<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ipixsolutions.json?callback=twitterCallback2&count=1">

</script>

Here, in the above code, you can see text called ipixsolutions.json just replace the ipixsolutions with your own twitter username.And where it says count=1, put your desired number of tweets you need to show at a time.
Voila!! your custom twitter widget is ready.

Step 3:

Next, by the following optional step, we can tweak the appearance of our custom twitter widget. i.e. applying a css style to our twitter widget.

#twitter_update_list li {

list-style-type: none;

}

#twitter_update_list span a

{

display: inline;

color: #008080;

}

#twitter_update_list span a:hover

{

text-decoration: underline;

color: #66CCFF;

}

#twitter_update_list span

{

color: #333;

font-family:Arial, Helvetica, sans-serif;

font-size:12px;

}


Append the above code to your css file. your can tweak it according to you need.

8 comments:

azoo said...

thans for this very informative reviews

Web Development Company - fraud said...

Wow, really very nice information about web design and web development services. Thanks for sharing nice information. Awesome post.

JTravolta said...

Really informative and useful post.I have enjoyed to read it.great job!keep it up..
cms website development

Anonymous said...

Nice!! Great Info. Great People. Great Blog. Thank you for all the great sharing that is being done here related to the gaming industry.
----

web design singapore - web design

Seo Link Building said...

Web Designer India
this is very useful content for me.

Thank you

Web Designer India said...

Web design needs to not only take into consideration a beautiful design that draws users into the site, but also functional so they can quickly access the information they need!


Web Designer India

Unknown said...

Creating a twitter widget is no more difficult after reading this great post. Thank to you for sharing this step by step, It is very easy and understand able how to create a twitter widget yourself. Carry on the great work!

Web Design and Development Funeral Homes Website Design - OptiMiZed360.Com

VertexPlus said...

Good post on webdesign and service.Thanks for share.If you are interested in software development then choose Software Development

Post a Comment