Html 创建指向 Skype 个人资料的应用程序链接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16177332/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Create application link to Skype profile
提问by Alex Turpin
I'd like to create an application link in HTML to a Skype profile. I've found that you can do the following:
我想在 HTML 中创建一个指向 Skype 配置文件的应用程序链接。我发现您可以执行以下操作:
<a href="skype:profile_name">Link to my profile</a>
But this seems to trigger a Skype call to that profile. I'd just want the option to browse the profile or add them as a contact, how can I do this?
但这似乎会触发对该配置文件的 Skype 呼叫。我只想选择浏览个人资料或将他们添加为联系人,我该怎么做?
回答by Alex Turpin
This doesn't seem to be very well documented, but there are ways to specify an action for a Skype profile link. This is the syntax
这似乎没有很好的记录,但有一些方法可以为 Skype 个人资料链接指定操作。这是语法
skype:profile_name?action
Examples of such actions are
此类操作的示例是
call
to callchat
to chatvoicemail
to leave a voice mailsendfile
to send a fileadd
to add to contactsuserinfo
to view profile
call
打电话chat
聊天voicemail
留下语音邮件sendfile
发送文件add
添加到联系人userinfo
查看个人资料
In this case then, the link to view the profile would look like this
在这种情况下,查看个人资料的链接将如下所示
<a href="skype:profile_name?userinfo">Link to my profile</a>
See also the Skype URIs page on MSDN.
另请参阅MSDN 上的Skype URI 页面。