Its very simple and yes it works in real time . That is when you are online it instantaneously reflects that with green bulb / button . Below is the code ..
<a href="http://edit.yahoo.com/config/send_webmesg?.target=**********&.src=pg" target="_blank"><img border=0 src="http://opi.yahoo.com/online?u=**********&m=g&t=2"></a>
Note: Just replace the above stars / asterix in red with the yahoo account username at 2 places. Also kindly note that if your yahoo id is "xyz" then write only "xyz" , no need to add up the @yahoo.com . The "xyz" id example is shown below :
<a
href="http://edit.yahoo.com/config/send_webmesg?.target=xyz&.src=pg" target="_blank"><img
border=0 src="http://opi.yahoo.com/online?u=xyz&m=g&t=2"></a>
Hope you might have got what you are looking for...
system32
Member of C-N-F (Cyber Ninja Force)