HTML codes for Instant Messaging?

I’m not sure if there is anything that is available to do this or not, but I thought I would ask. I’ve been searching online and can’t find much other than IM smiley sites. :wink:

As I continue to work on features for my script, one I’m working on is adding the ability to add IM handles into a user’s profile (AIM, MSN, Yahoo or ICQ). I was wondering if there were some sort of “link” code that you can use in an HTML page that, when clicked on, will launch that IM application to start a conversation or add them to their “buddy list” (or something to that affect)? Any sites, tips or code would be greatly appreciated!

Thanks.

AIM (opens IM window to screenname with message text inserted)


<a href="aim:goim?screenname=screenname+here&amp;message=message+here">Send  AIM message</a>

MSN (sends message, nasty IE-only code too :aparty: )


<object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="MsgrObj" width="0" height="0"></object>

<a id="lnkMSN" title="Send MSN Message" class="normal" onClick="MsgrObj.InstantMessage('whoever@hotmail.com'); return false;" href="#">whoever@hotmail.com</a>

Don’t know about the other ones.

Thanks Vinnie. I was thinking that even if there was a solution for all of them, it would be one of those hit-and-miss solutions. For example, even for the AIM link, I use iChat instead of AOL’s app so that wouldn’t work for me.

It’s pretty plain to have all the IM’s listed for a user without links or something … but if there isn’t a universal solution I think it would be better to have no links than ones that only work for a select few people. I don’t want too many “bug reports” on that feature not working for all Safari users or something. :wink:

If anyone else knows of other solutions feel free to post them.

http://ra2faq.savagewar.co.uk/index.php?page=comm

http://journals.aol.com/sepintx/sometimesphotoblog/entries/560
http://www.onlinestatus.org/
http://www.activeserverpages.ca/HOWTO/Messenger.asp

Vinnie, I’m curious, where did you find that code?

Thanks for those links! I’ll have to try a few out and see how they work.

I’ve known about the AIM one for a while. The MSN code was one I found via a Google search.

LiquidReflex, you’re welcome. :slight_smile:

Vinnie, would you mind sharing the search string you used?