您的位置:首页 > 其它

在线调用QQ

2013-12-26 13:39 225 查看
<!--在<head></head>中间加上下面代码-->
<script language="JavaScript" type="text/JavaScript">
<!--
function CheckInstall_TM_Hummer(uin)
{
if(window.navigator.appVersion.indexOf("MSIE") == -1)
{
alert("温馨提示:/r/n  您使用的浏览器不支持QQ临时会话功能,建议您加对方为好友,或使用IE/TT浏览器访问。");
return false;
}
sitename="网站";
if(!item) Link="tencent://message/?Menu=yes&uin="+uin
else Link="tencent://message/?Menu=yes&uin="+uin

//Link="tencent://message/?Menu=yes&uin="+uin+"&Site=www.paipai.com&Service=19&sigT="+sigT+"&sigU="+sigP;
try{//支持
var xmlhttp=new ActiveXObject("TimwpDll.TimwpCheck");
this.location.href=Link;
var  n = xmlhttp.GetVersion();
if (n >= 2.1)
this.location.href=Link;
else
{
alert("温馨提示: 请您访问http://im.qq.com/下载新版的QQ/TM以支持与企业在线交流!");
window.target="_top";
window.open("http://im.qq.com/");
}
}catch(e){//不支持
alert('不支持');
alert("温馨提示: 请您访问http://im.qq.com/下载新版的QQ/TM以支持与企业在线交流!");
window.target="_top";
window.open("http://im.qq.com/");
}
return false;
}
//-->
</SCRIPT>


<!--在需要调用的地方,加以下代码。把123456换成您自己的号码-->
<a style="cursor:hand;" onclick="javascript:{CheckInstall_TM_Hummer('123456);}" title='在线即时交谈或留言' style="cursor:hand"><img src=" http://wpa.qq.com/pa?p=1:123456:17" border="0"> 在线交流</a>

转自 http://blog.csdn.net/zhongjingbao/article/details/4546118
另一篇文章有其他方式 更实用/article/8754704.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: