网页中添加 QQ 聊天代码
提供两种方式:
一、<a target="_blank" href=" http://wpa.qq.com/msgrd?V=1&Uin=371766690&Exe=QQ&Site=im.qq.com&Menu=No">
<img border="0" src="images/QQ.gif" alt="点击这里给我发消息" />
</a>
二、<a href=" http://sighttp.qq.com/cgi-bin/check?sigkey=68d886ce7d5bab155919dc949b7ba0027c732a940a170cbe2217c5ab0d61ac69"
target="_blank" onclick="var tempSrc=' http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=68d886ce7d5bab155919dc949b7ba0027c732a940a170cbe2217c5ab0d61ac69';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;">
<img border="0" src=' http://wpa.qq.com/pa?p=1:371766690:7' alt="点击这里给我发消息" /></a>
一、<a target="_blank" href=" http://wpa.qq.com/msgrd?V=1&Uin=371766690&Exe=QQ&Site=im.qq.com&Menu=No">
<img border="0" src="images/QQ.gif" alt="点击这里给我发消息" />
</a>
二、<a href=" http://sighttp.qq.com/cgi-bin/check?sigkey=68d886ce7d5bab155919dc949b7ba0027c732a940a170cbe2217c5ab0d61ac69"
target="_blank" onclick="var tempSrc=' http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=68d886ce7d5bab155919dc949b7ba0027c732a940a170cbe2217c5ab0d61ac69';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;">
<img border="0" src=' http://wpa.qq.com/pa?p=1:371766690:7' alt="点击这里给我发消息" /></a>
三、去QQ官方网站自己生成代码http://wp.qq.com/index.html