协助基本的js,以使Skype按钮工作(assistence with basic js in order to get skype button to work)

编程入门 行业动态 更新时间:2024-10-21 13:44:07
协助基本的js,以使Skype按钮工作(assistence with basic js in order to get skype button to work)

我是相对较新的JavaScript和尝试将javascript链接到html体中的父div,而不是将javascript插入到html的主体中。 谁能告诉我如何解决它。 最终结果将是一个Skype通话按钮,允许用户通过点击播放(工作时)显示在网页上的Skype按钮来关闭网页。

HTML

<!doctype html> <head> <!-- skype js script--> <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script> <script src="js/skype.js"></script> </head> <body> <!-- skype parent div--> <div id="SkypeButton_Call_eddyrailgun_1"> </div> </body> </html>

JavaScript的

Skype.ui({ "name": "call", "element": "SkypeButton_Call_eddyrailgun_1", "participants": ["eddyrailgun"], "imageSize": 24 });

I am relatively new to javascript and trying to link the javascript to a parent div in the html body with out inserting the javascript into the body of the html. Could anyone tell me how to fix it. The end result will be a skype call button to allow users to ring me off a webpage with a click of the skype button thats ment (when working) to appear on the webpage.

HTML

<!doctype html> <head> <!-- skype js script--> <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script> <script src="js/skype.js"></script> </head> <body> <!-- skype parent div--> <div id="SkypeButton_Call_eddyrailgun_1"> </div> </body> </html>

JavaScript

Skype.ui({ "name": "call", "element": "SkypeButton_Call_eddyrailgun_1", "participants": ["eddyrailgun"], "imageSize": 24 });

最满意答案

您可以使用:

<a href="skype:skype?call">Call me</a>

这将打开Skype应用程序。

You can use:

<a href="skype:skype?call">Call me</a>

This will open the Skype application.

更多推荐

本文发布于:2023-08-06 22:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1456754.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   工作   assistence   Skype   js

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!