i was googling around and found this info which describes how one might make <a> links to launch MSN Messenger. I'm wondering if there's some way I can find out if it's safe or if it might launch malware of some kind.
MSN Messenger/Windows Messenger: This is where it gets really tricky! The only way I've been able to find to make this work is to use JavaScript. Somewhere in the BODY of your page (anywhere before your links), you need to put this code:
<OBJECT height='1' id='MsgrObj' width='1'></OBJECT>
<script>
<!--
function MySendIM(person)
{
//Check if person has messenger installed
try{MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28";}
catch(e){if(!(e.number && 2148139390) == 2148139390)return;}
//Check if you are logged in
if(MsgrObj.MyStatus == 1)
{
alert("You are not logged into Messenger.");
return;
}
MsgrObj.InstantMessage(person);
}
function MyAddToContacts(person)
{
//Check if person has messenger installed
try{MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28";}
catch(e){if(!(e.number && 2148139390) == 2148139390)return;}
//Check if you are logged in
if(MsgrObj.MyStatus == 1)
{
alert("You are not logged into Messenger.");
return;
}
//Check if person is already in contact list
try{var contact = MsgrObj.GetContact(person,"");}
catch(e)
{
if((e.number && 2164261642) == 2164261642) //MSGR_E_USER_NOT_FOUND
{
MsgrObj.AddContact(0,person);
return
}
}
alert("That person is already in your contact list!");
}
-->
</script>
Once you've done this, you can use these two simple links:
<A HREF="javascript:MySendIM('zendrix7@hotmail.com')">Send me an IM</A>
<A HREF="javascript:MyAddToContacts('zendrix7@hotmail.com')">Add me to your Contacts List</A>
the original page is here:
http://www.nonsensicon.com/matt/htmltip.asp#imlink