If you use Yahoo messenger here is a great way to have your visitor be able to contact you easily thru your website. This tutorial will also allow the website to show an icon for if your online or offline.
you should already know a fair bit of html for this. so this is meant for intermediate users.
first, we will create a hyperlink that users can use to send an instant message to you.
You’ll create a hyperlink with <a> tag with the ‘href’ attribute in the form ‘ymsgr:sendim?userID’.
For example:
<a href = ‘ymsgr:sendim?monstaaaah’>shout at me.</a>
when the user clicks on the hyperlink, a new Yahoo Messenger chat window will appear for the user to send a message, in this example the user is monstaaaah . (of course use your own handle).
using the following code:
<a href = ‘ymsgr:sendim?YourID&m=What+up+friend’>Shout at me.</a>
this will force the first message to be “what up friend” because the message is by default represented by the ‘m’ attribute value. Notice that if your message has spaces, you have to represent each space by the character ‘+’.
This is a good way to know first hand that the user is coming from your site.
That was easy… But what if your not online what then
Well we can use the yahoo offline/online icons. so the site will show if your on or off.
<a href="ymsgr:sendIM?YourID“>
<img border=0 src=”http://opi.yahoo.com/online?u=YourID&m=g&t=StyleID” /> </a>
the <img> tag is to view the picture from the result from the Yahoo website.
You have two attributes in the Yahoo website link.
The first is ‘u’, (remember to replace YourID with your Yahoo ID).
The second attribute is ‘t’, replace StyleID by a number from 0 to 16, this is the style of the picture that will show if your online or off.
try this in your web browser
http://opi.yahoo.com/online?u=YOURIDHERE&m=g&t=YOURStyleID” border=1
EXAMPLE
http://opi.yahoo.com/online?u=monstaaaah&m=g&t=2″ border=1
And thats it.
Simple i know.
Hope it of use to someone.
owh, btw below are the style that i mention before:

