网页制作小技巧------如何在网页中加入QQ和旺旺等
2010-11-30 15:40
309 查看
Tencent://Message/协议的实现原理
2008年07月17日 星期四 12:04
2008年07月17日 星期四 12:04
腾讯官方通过 Tencent://Message/协议可以让QQ用户显示QQ/TM的在线状态发布在互联网上;并且点击 ,不用加好友也可以聊天: 官方链接: http://is.qq.com/webpresence/code.shtml 具体代码: <a href="tencent://message/?uin=215555521&Site=JooIT.com&Menu=yes"> <img border="0" SRC='http://wpa.qq.com/pa?p=1:215555521:3' alt="点击这里给我发消息"> </a> 但它是如何实现的呢?下面文章以及微软官方说明详细解释了其工作原理: 微软官方说明:http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/pluggable/overview/appendix_a.asp Register protocol,此文中对于 Windows、Linux 和 OS X 操作系统如何注册协议都有说明。比如说 Windows,其实只需写入注册表,即可实现协议与执行程序的关联。例如腾讯的Tencent://Message协议注册表如下: [HKEY_CLASSES_ROOT/TENCENT] @=”TencentProtocol” “URL Protocol”=”D://Program Files//Tencent//QQ//Timwp.exe” [HKEY_CLASSES_ROOT/TENCENT/DefaultIcon] @=”D://Program Files//Tencent//QQ//Timwp.exe,1″ [HKEY_CLASSES_ROOT/TENCENT/shell] [HKEY_CLASSES_ROOT/TENCENT/shell/open] [HKEY_CLASSES_ROOT/TENCENT/shell/open/command] @=”/”D://Program Files//Tencent//QQ//Timwp.exe/” /”%1/”" 此注册表所实现的就是当浏览器(或其它)碰到 tencent://… 时,自动调用 Timwp.exe,并把 tencent://… 地址作为第一个参数传递给 Timwp.exe。 更多参见:Registering an Application to a URL Protocol。 附:原文
原文链接: hi.baidu.com/kmiaoer/blog/item/799fd388ec403691a5c2723b.html |
相关文章推荐
- 如何制作类似msn(QQ)等网页中的拖动效果(一)
- 如何在网页HTML中嵌入QQ、MSN、旺旺、Gtalk快速对话框代码
- 网页制作小技巧------如何在浏览器地址栏中显示网站的图标?
- 如何在制作的网页中加入google地图
- 如何制作类似msn(QQ)等网页中的拖动效果
- 如何在网页HTML中嵌入QQ、MSN、旺旺、Gtalk快速对话框代码
- 如何制作类似msn(QQ)等网页中的拖动效果(二)
- 如何在网页HTML中嵌入QQ、MSN、旺旺、Gtalk快速对话框代码
- 如何制作类似msn(QQ)等网页中的拖动效果(二)
- 如何制作简单的仿qq聊天工具
- 如何用 Python 爬取网页制作电子书
- 网页中插入即时沟通工具 QQ,MSN,SKYPE,旺旺等
- CSS网页制作时实现自动换行的小技巧
- QQ.阿里旺旺.淘宝.在线网页链接代码及详解
- html 网页嵌入 QQ MSN 旺旺 Gtalk快速对话框官方代码的方法
- DIV遮罩层如何实现_Div+CSS教程_CSS_网页制作
- iOS WebView 如何通过js获取网页中所有图片并加入点击事件,实现浏览图片的功能
- CSS网页制作时实现自动换行的小技巧
- 在网页中加入计数器和QQ
- 网页制作小技巧:dl dt dd标签用法