作者在 2007-04-25 04:43:00 发布以下内容
//在需要放置的页面,如szasp.htm加入如下代码:
< TYPE="text/java" LANGUAGE="Java" SRC="MsnOnline.js"></> <a href="java:mst_ddDlg()"><img src=/XrssFile/2006-11/5/2006115123355462.gif></a>
MsnOnline.js的代码如下:
write("
"); mst_ddDlg(ncity) { var address = ""; if(ncity == 10) address = "szsbell@gmail.com"; else if(ncity == 20) address = "szsbell@163.com"; else if(ncity == 30) address = "cnwebshop@hotmail.com"; else if(ncity == 40) address = "webtcn@gmail.com"; else address = "szsbell@hotmail.com"; try { MsgrObj.codetype="application/x-oleobject"; MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28"; } catch(e) { alert("请您在MSN中手动添加" + address + "!\n网络大本营将很高兴为您服务!"); return; }
if(MsgrObj.MyStatus == 1) { alert('您的MSN没有登陆,请先登陆'); } else if(MsgrObj.MyStatus == 2 || MsgrObj.MyStatus == 10 || MsgrObj.MyStatus == 14 || MsgrObj.MyStatus == 34 || MsgrObj.MyStatus == 50 || MsgrObj.MyStatus == 66 || MsgrObj.MyStatus == 6) { MsgrObj.InstantMessage(address); } else if (MsgrObj.MyStatus == 512 || MsgrObj.MyStatus == 768) { alert('您的MSN正在登陆,请稍等...'); } else { alert("请您在MSN中手动添加" + address + "!\n网络大本营将很高兴为您服务!"); } } |