使用在线聊天工具(IM)可以方便、快捷地进行沟通交流,所以在博客、经营网站里经常能见到各种IM代码。在此收集了一些常见的IM代码,存档备忘。
1. QQ在线代码
代码生成页面:http://bizapp.qq.com/webpres.htm
示例代码(两种风格):
<img style="CURSOR: pointer" onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&sid=QQ_Num&o=Your_WebName&q=7', '_blank', 'height=502, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');" border="0" SRC=http://wpa.qq.com/pa?p=1:QQ_Num:1 alt="点击这里给我发消息">
<img style="CURSOR: pointer" onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&sid=QQ_Num&o=Your_WebName&q=7', '_blank', 'height=502, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');" border="0" SRC=http://wpa.qq.com/pa?p=1:QQ_Num:7 alt="点击这里给我发消息">
2. MSN在线代码
参考资料:
http://www.mess.be/msnmessengerfaq/idx/0/139/article/Are_there_any_HTML_codes_that_integrate_MSN_Messenger.html
With the release of MSN Messenger 7.5 in August 2005, Microsoft introduced a protocol handler which allows us to integrate MSN Messenger (and later Windows Live Messenger) into our MSN Spaces, personal blogs or other websites with the use of special HTML codes. Here's an overview of the four uses of the msnim protocol handler with hyperlink examples:
- msnim:add - Allow your visitors to add you to their MSN contacts immediately. Example: Add me to your MSN Messenger contact list
- msnim:chat - Clicking this link will open a conversation with [email protected] and allows instant chatting. Example: Click here to chat
- msnim:voice - Allow your visitors to start Voice chatting with you in just one click. Example: Start a Voice chat with me
- msnim:video - Launches a Video conversation straight from a web page. Example: Start a Video chat with me.
In each case the visitor is required to be logged into MSN Messenger 7.5 or higher. One's privacy settings and reaction speed to the warning prompts and invitation requests will eventually influence the "instant" character of these codes.
3. 阿里旺旺(淘宝版)在线代码
代码生成页面:http://www.taobao.com/help/wangwang/wangwang_0628_12.php
示例代码:
<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid=WangWang_TB&s=1" ><img border="0" src="http://amos1.taobao.com/online.ww?v=2&uid=WangWang_TB&s=1" alt="点击这里给我发消息" />a>
4. 阿里旺旺(阿里巴巴版,贸易通版)在线代码
代码生成页面:http://alitalk.alibaba.com.cn/tese/index.html
示例代码(两种风格):
<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=WangWang_B2B&site=cnalichn&s=5" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=WangWang_B2B&site=cnalichn&s=5" alt="点击这里给我发消息" />a>
<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=WangWang_B2B&site=cnalichn&s=2" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=WangWang_B2B&site=cnalichn&s=2" alt="点击这里给我发消息" />a>
说明:阿里旺旺(阿里巴巴版)是在阿里巴巴网站里使用的旺旺,又称为“贸易通”,和淘宝里的那个旺旺很相似,但是它们是两个不同的工具。使用阿里巴巴版可以选择登录阿里巴巴中国、阿里巴巴国际、淘宝等。
英文版叫Trade Manager,示例代码:
<a target="_blank"href="http://amos.us.alitalk.alibaba.com/msg.aw?v=2&uid=Your_TM&site=enaliint&s=5"><img border="0" src="http://amos.us.alitalk.alibaba.com/online.aw?v=1&uid=Your_TM&site=enaliint&s=5>" alt="Send message" />a>