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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 07:48:34  来源:igfitidea点击:

Create application link to Skype profile

htmlhyperlinkskype

提问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

此类操作的示例是

  • callto call
  • chatto chat
  • voicemailto leave a voice mail
  • sendfileto send a file
  • addto add to contacts
  • userinfoto 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 页面