惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
博客园_首页
F
Fortinet All Blogs
博客园 - Franky
Latest news
Latest news
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
D
Docker
Project Zero
Project Zero
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
Cisco Talos Blog
Cisco Talos Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Help Net Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
PCI Perspectives
PCI Perspectives
Cloudbric
Cloudbric
V
Visual Studio Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理

博客园 - 戴玮

关于状态模式的思考 实在是忍受不了MSN的巨慢速度,重新换个地方 如果在网页中实现查找功能 asp.net2.0 页面生命周期方法 C#加密与解决 如何自定义一个模板列,并在后台加载 ASP.NET常用的代码集合 - 戴玮 - 博客园 触发器示例代码 ADO.NET2.0分页 - 戴玮 - 博客园 如何查找 Office Web 组件 (OWC) 编程文档和示例 如何将枚举定义翻译成DataTable 如何在XP SP2下面使用DTC Javascript 复制与粘贴 - 戴玮 - 博客园 如何在Component中取得Page对象 使用TransactionScope进行COM+事务处理 - 戴玮 - 博客园 如何在C#中使用EVAL方法 - 戴玮 - 博客园 巨NB的JAVASCRIPT代码 - 戴玮 - 博客园 9月25日C#->WebService中如何传递文件 解决了一年多的问题,狂喜(一年之前)
网页中调用MSN添加好友工具
戴玮 · 2006-11-15 · via 博客园 - 戴玮

<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  );
 }
}