Adding Yahoo Messenger status icons to website is very easy and it don’t need any software to customize it. Below I have submitted 25 different status messages that can be used to display on your blog or website while the user is online or offline on Yahoo Messenger.
Using this OPI from yahoo we will be able to detect the status of Yahoo Messenger whether a user is online.
To add this OPI on your website use this following code.(Repalce the "YahooID" with your own id)
<img src="http://opi.yahoo.com/online?u=YahooID" />
Above code will display a cute smiley face icon when you are online and a gray icon if you are offline. Below I have posted 25 icons to customize your Yahoo Messenger online status.
To display an icon with the style number 1, we use this syntax in HTML:
<img src="http://opi.yahoo.com/online?u=YahooID&t=1" border="0" />
(Note: don’t forget to change "YahooID" with your own)
You can add a custom message also when a user clicks on the image to launch Yahoo Messenger and start a chat with the default message as "hi".
<a href="ymsgr:sendIM?YahooID&m=Hi"><img src="http://opi.yahoo.com/online?u=YahooID&t=StyleID" border="0"></a>
(Note: Again don’t forget to change "YahooID" with your own and there is default StyleId, you can customize by chaning the "StyleID").

thanks you help me with this tutorial
nice post dude!