在网页文件中插入QQ强制聊天
tencent://Message/?Uin=120425796
<script language="JavaScript">
<!--
function talk(){
if (document.form1.qqhao.value=="")
{
alert("请输入对方QQ号码!");
document.form1.qqhao.focus();
return;
}
window.location="http://wpa.qq.com/msgrd?V=1&Uin="+document.form1.qqhao.value+"&Site=qqjia.com&Menu=yes";
}
-->
</script>
<form name=form1 action="javascript:talk()">
输入对方QQ号码:
<input type=text name=qqhao size=11>
<input type=submit value="开始聊天">
</form>
<script language="JavaScript">
<!--
function talk(){
if (document.form1.qqhao.value=="")
{
alert("请输入对方QQ号码!");
document.form1.qqhao.focus();
return;
}
window.location="http://wpa.qq.com/msgrd?V=1&Uin="+document.form1.qqhao.value+"&Site=qqjia.com&Menu=yes";
}
-->
</script>
<form name=form1 action="javascript:talk()">
输入对方QQ号码:
<input type=text name=qqhao size=11>
<input type=submit value="开始聊天">
</form>