<object id=MsgrUIA classid=clsid:B69003B3-C55E-4b48-836C-BC5946FC3B28 codeType=application/x-oleobject width=0 height=0></object> js function addMSN(server_type){ //alert(server_type); //return; var address; if(server_type == "DICT") { address = "dict002@msndoor.com"; } else if(server_type == "GAME") { address = "game001@msndoor.com"; } else if(server_type == "BBS") { address = "bbs001@msndoor.com"; } try { if("undefined" == typeof(MsgrUIA)) throw 0; if(MsgrUIA.MyStatus == 1) { MsgrUIA.SignIn(0,'',''); throw 1; } MsgrUIA.AddContact(0, address); } catch(e) { switch(e) { case 0: //alert("fail0: state_code=" + MsgrUIA.MyStatus); alert("您没有安装MSN,如果已经安装MSN,请手动添加帐号: " + address ); break; case 1: //alert("fail1: state_code=" + MsgrUIA.MyStatus); alert("您的MSN没有登陆,请登陆"); break; default: //alert("unknow fail: state_code=" + MsgrUIA.MyStatus); alert("请手动添加MSN帐号: " + address ); break; } } return; if(MsgrUIA.MyStatus == 1) { alert("您的MSN没有登陆,请登陆"); } else if(MsgrUIA.MyStatus == 2 || MsgrUIA.MyStatus == 10 || MsgrUIA.MyStatus == 14 || MsgrUIA.MyStatus == 34 || MsgrUIA.MyStatus == 50 || MsgrUIA.MyStatus == 66 || MsgrUIA.MyStatus == 6) { //2,10, 14, 34, 50,66,6 MsgrUIA.AddContact(0, address); } else if(MsgrUIA.MyStatus == 512 || MsgrUIA.MyStatus == 768) { alert('fail2'); } else { alert("您没有安装MSN,如果您已经安装MSN,请手动添加3: " + address ); }}