Html 如何开始 Skype 聊天? - 不是电话? - 使用链接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2841676/
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 03:06:19  来源:igfitidea点击:

How to start a Skype chat?– not a call?– with a link

htmlchatskype

提问by elon

You can put skype:usernameinto the hrefattribute of a link and it works, but it begins a?call, but I want to create a link to begin a chat (a text?conversation). I know that skype:is a type of protocol, but don't know how to create this?link.

您可以放入链接skype:usernamehref属性,它可以工作,但它开始一个?呼叫,但我想创建一个链接来开始聊天(文本?对话)。我知道这skype:是一种协议,但不知道如何创建这个?链接。

回答by Anton

Have you tried <a href="skype:-skype-name-?chat">Start chat</a>?

你试过<a href="skype:-skype-name-?chat">Start chat</a>吗?

Allowed query parameters:

允许的查询参数:

  • chat- start a chat
  • call- start a call
  • add- add person to the contacts
  • userinfo- view user's profile
  • voicemail- leave a voice message
  • sendfile- send a file
  • chat- 开始聊天
  • call- 开始通话
  • add- 将人添加到联系人
  • userinfo- 查看用户的个人资料
  • voicemail- 留言
  • sendfile- 发送文件

回答by OfficeYA

I have been fighting with the following link all day.

我整天都在与以下链接作斗争。

<a href="skype:-skype-name-?chat">Start chat</a>

The problem that I had was with the -skype-name-part

我遇到的问题是-skype-name-部分

Finally, I just solved it.

最后,我刚刚解决了它。

My name on Skype web page was namebut the real name was name lastname. The link in my web page did makeSkype to load in my Android phone but, Skype failed to find the account to wich I wanted to call (name lastname).

我在 Skype 网页上的名字name但真实姓名是name lastname。我网页中的链接确实让Skype 加载到我的 Android 手机中,但是,Skype 未能找到我想要呼叫的帐户(姓氏)。

I tryed, and failed:

我尝试过,但失败了:

<a href="skype:name lastname?call">...
<a href="skype:name+lastname?call">...
<a href="skype:name%20lastname?call">...
<a href="skype:name-lastname?call">...
<a href="skype:name_lastname?call">...
<a href="skype:phonenumber?call">...

Then, the solution:

那么,解决办法:

<a href="skype:live:emailnamewithoutdomain?call">...

I just hope u find it usefull.

我只是希望你觉得它有用。

And, do not forget that u have a plenty of commands to add after the ?in the url (add,call,chat,and so on).

而且,不要忘记在? 在网址中(添加、通话、聊天等)。

回答by Salvador Dali

Skype official websitehas it nicely documented.

Skype 官方网站有很好的记录。

Basically in the ends it gives you a nice code for a button.

基本上最后它为您提供了一个很好的按钮代码。

<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
<div id="SkypeButton_Chat_xxxx">
  <script type="text/javascript">
    Skype.ui({
      "name": "chat",
      "element": "SkypeButton_Chat_xxxx",
      "participants": ["xxxx"],
      "imageSize": 24
    });
  </script>
</div>

回答by Ramalingam

The solution: You just use this format,hope its working fine

解决方案:您只需使用这种格式,希望它工作正常

 <a href="sip:-skype-name-">Chat</a>

<a href="tel:****Skype number***">Call</a>

回答by VenkatPro

Use the below code. It's simple and working in all major browsers.

使用下面的代码。它很简单,适用于所有主要浏览器。

<a href="im:<sip:[email protected]>"><button>Skype</button></a>

回答by Harsha Vardhini

Its very simple. Use the below format.

它非常简单。使用以下格式。

<a href="im:<sip:[email protected]>" >Click to chat</a>