頁面QQ在線諮詢、在線交談代碼ui
樣式一:spa
<a target="blank" rel="nofollow" href="tencent://message/?uin=*********&Site=在線諮詢&Menu=yes"><img border="0" src="Skins/Images/qq1.gif" alt="點擊這裏給我發消息" title="點擊這裏給我發消息" style="vertical-align:middle;"></a>
樣式二:3d
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=*********&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:953000851:51" alt="點擊這裏給我發消息" title="點擊這裏給我發消息"/></a>
進入頁面自動與QQ發起會話,不用用戶再進行點擊操做:code
沒有加爲好友的,要先加好友才能進行會話,會先彈出加爲好友的提示框。blog
自動發起會話的代碼:ip
<script> document.writeln(""); eval(function(p,a,c,k,e,r){e=String;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[01]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('var 0=true;function 1(){if(0){popwin=window.location.href=\'tencent://message/?uin=*********&Site=在線諮詢&Menu=yes\'}};setTimeout("1()",10000);',[],2,'qq_chat|PlayJsAdPopWin'.split('|'),0,{})) </script>
注:使用時,把*********改爲本身的QQ號。get
tencent://message/,是騰訊新出的。it