調(diào)用qq的方法:
<A href="tencent://message/?uin=20989163&Site=博客園&Menu=yes"
target=blank><IMG alt=點(diǎn)擊這里給我發(fā)消息 src="http://wpa.qq.com/pa?p=1:20989163:11"
border=0></A>
調(diào)用msn的方法:
<A href="msnim:chat?contact=xxqq0824@hotmail.com" target=blank>點(diǎn)這里和我MSN聊天</A>
放在頁面上就能出效果了!
1.如何在網(wǎng)頁上顯示騰訊QQ在線洽談?
QQ在線咨詢代碼(qq在線交談代碼/qq在線客服代碼/qq在線狀態(tài)代碼/qq在線客服代碼)
(將123456換成你的號碼,site后面換成你的網(wǎng)站就可以了)
- <a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=12345678&Site=精品空間論壇& Menu=yes"><img border="0" SRC=http://wpa.qq.com/pa?p=1:12345678:6 alt="點(diǎn)擊這里給我發(fā)消息" align="absmiddle"></a>
更多的生成顯示QQ在線狀態(tài)的代碼,請查看騰訊官方網(wǎng)站
http://imis.qq.com/webpresence/code.shtml
你只需要填寫你的號碼,網(wǎng)站名稱以及提示就可以點(diǎn)擊生成就可以生成QQ在線狀態(tài)的代碼,拷貝生成的代碼加入網(wǎng)頁即可
2.阿里巴巴貿(mào)易通在線狀態(tài)代碼生成,eric改成你的ID就行了,還有ALT改成你的內(nèi)容
- <a target=_blank ><img _fcksavedurl=""http://scs1.sh1.china.alibaba.com/msg.atc?v=1&uid=mengsajewel"><img" border=0 src="http://scs1.sh1.china.alibaba.com/online.atc?v=1&uid=eric&s=2" alt="精品空間論壇 eric" align="absmiddle"></a>
更多的阿里巴巴貿(mào)易通在線狀態(tài)代碼生成樣式,請查看阿里巴巴官方網(wǎng)站
http://club.china.alibaba.com/club/block/alitalk/alitalkfire.html
3.skype在線狀態(tài)代碼生成
將eric換成你的skype ID就可以了,需要在skype個人賬戶里設(shè)置對任何人顯示狀態(tài)
- <a href="skype:eric?call" _fcksavedurl=""skype:venky1979?call"" on-click="return skypeCheck();"><img src=http://mystatus.skype.com/smallclassic/eric style="border: none;" alt="Call me!" /></a>
更多的skype在線狀態(tài)代碼生成樣式,請查看skype的官方網(wǎng)站
http://www.skype.com/share/buttons/
4.如何生成MSN在線狀態(tài)代碼
可以設(shè)置自定義顯示圖片,不過檢測速度有點(diǎn)慢,另外一部分人在msn的配置中,設(shè)置了不加好友就不顯示在線。這是為了個人隱私保護(hù),但這樣會顯示狀態(tài)未知或者離線。如果你不介意別人看到你,就開啟那個選項(xiàng)就好了。
- <!--MSN即時交談代碼開始 -->
- <Script language=javascript>
- function SendMSNMessage(name)
- {
- //Send a message through MSN , only for IE
- //and you must have installed MSN or Window Message
- MsgrObj.InstantMessage(name);
- }
- function AddMSNContact(name)
- {
- //Add a people to MSN , only for IE
- //and you must have installed MSN or Window Message
- MsgrObj.AddContact(0, name);
- }
- </script>
- <object id="MsgrObj" classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28"
- codetype="application/x-
- oleobject" width="0" height="0"></object>
- <input type=image src="images/MSN.gif" alt="在線MSN交流" onClick="SendMSNMessage
- ('[email]meskyes@hotmail.com[/email]')" />
- <!--MSN在線交談代碼結(jié)束 -->
6:雅虎
將admin@hichf.com換成您自己的:
- <a target="_blank"><img src="http://opium3.msg.vip.mud.yahoo.com/online?u=admin@hichf.com&t=1&l=cn" alt="在網(wǎng)頁上就能直接與我們交談!" width=82 height=22 hspace="5" border="0" align="absmiddle" /></a>
7.在線客服的代碼
有很多朋友問我在線客服的代碼,貌似網(wǎng)上也找不到好用的,因此打算把自己珍藏的代碼拿出來給大家分性享一下,很好用。
按鈕部分,我是用圖片來做例子
- <SPAN style="CURSOR: hand"
- onclick="javascript:addMSN('[email]admin@hichf.com[/email]');"><IMG
- src="kefu.gif" border=0> </SPAN>
- <DIV style="DISPLAY: none">
- <OBJECT id=MsgrUIA height=0 codeType=application/x-oleobject width=0
- classid=clsid:B69003B3-C55E-4b48-836C-BC5946FC3B28></OBJECT></DIV>
JS部分:
- <SCRIPT language=javascript>
- <!--
- function addMSN (address) {
- if (MsgrUIA.MyStatus == 1)
- {
- alert('您的MSN沒有登陸,請先登陸');
- }
- else if(MsgrUIA.MyStatus == 2 || MsgrUIA.MyStatus == 10 || MsgrUIA.MyStatus == 14 || MsgrUIA.MyStatus == 34 || MsgrUIA.MyStatus == 50 || MsgrUIA.MyStatus == 66 || MsgrUIA.MyStatus == 6) { //2,10, 14, 34, 50,66,6
- MsgrUIA.InstantMessage(address);
- }
- else if (MsgrUIA.MyStatus == 512 || MsgrUIA.MyStatus == 768)
- {
- alert('您的MSN正在登陸,請稍等');
- }
- else {
- alert('錯誤代碼:'+ MsgrUIA.MyStatus + '。您沒有安裝MSN或使用的不是IE瀏覽器,請安裝MSN并手動添加' + address );
- }
- }
- -->
- </SCRIPT>
ENGLISH
- <SCRIPT language=javascript>
- <!--
- function addMSN (address) {
- if (MsgrUIA.MyStatus == 1)
- {
- alert('Add a people to MSN , only for IE and you must have installed MSN or Window Message');
- }
- else if(MsgrUIA.MyStatus == 2 || MsgrUIA.MyStatus == 10 || MsgrUIA.MyStatus == 14 || MsgrUIA.MyStatus == 34 || MsgrUIA.MyStatus == 50 || MsgrUIA.MyStatus == 66 || MsgrUIA.MyStatus == 6) { //2,10, 14, 34, 50,66,6
- MsgrUIA.InstantMessage(address);
- }
- else if (MsgrUIA.MyStatus == 512 || MsgrUIA.MyStatus == 768)
- {
- alert('Logining Now,Please wait!');
- }
- else {
- alert('Error:'+ MsgrUIA.MyStatus + '。Send a message through MSN , only for IE and you must have installed MSN or Window Message' + address );
- }
- }
- -->
- </SCRIPT>
以上代碼已經(jīng)不支持msn8.0,MSN 8.0的代碼
- <A title="請確保XP版本以上的Windows并安裝好MSN,或者手動添加地址。" href="msnim:chat?contact=admin@hichf.com" target=_blank>給zanpo發(fā)消息</A>
收藏自:CHF精品論壇