如何将skype-uri.js与个性化按钮一起使用? [英] How can I use skype-uri.js with personalized buttons?
问题描述
我想使用 Skype用户界面参考中的skype-ui但我不喜欢使用Skype提供的图像资产。我创建了我的个性化Skype按钮,我想使用它。我怎么能这样做?
I want to use the skype-ui found in Skype UI Reference but I don't like to use the "image assets" that Skype has available. I have created my personalized Skype button and I want to use it. How can I do this?
我知道有这样的代码:
<a href="skype:echo123?call">Call</a> the Skype Echo / Sound Test Service
它可以轻松地用作任何类型的按钮但在使用时这个在没有安装任何skype的计算机上,这个东西不允许我在skype的下载页面中重定向。与使用js脚本时不同:
and it can easily be use as any kind of button but when using this on a computer that doesn't have any skype installed, the thing won't allow me to redirect in the downloads page of skype. Unlike when using the js script:
<div id="call_32" style="width:20%;background-color:#0094ff">
<script type="text/javascript">
Skype.ui({
name: "call",
element: "call_32",
participants: ["echo123"],
imageSize: 32,
imageColor: "white"
});
</script>
</div>
但它不会让我使用个性化按钮。
But it won't let me use a personalized button.
请帮助。
谢谢,
标记
推荐答案
我知道这个问题有点陈旧,但我刚遇到同样的问题,我想我会分享我的解决方案。
I know this question is a bit old, but as I just faced the same problem I thought I would share my solution.
在按钮之前的某处按照指示包含skypeui.js包
Include the skypeui.js package as instructed somewhere before the button
<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
然后只需使用以下标记,将myskypename替换为您想要的Skype名称或号码电话。
Then simply use the following markup, replace "myskypename" with the skype name or number you would like to call.
<div id="MyDiv">
<a onclick="Skype.tryAnalyzeSkypeUri('call', '0');" href="skype:myskypename?call">
<img role="Button" src="/images/mybutton.gif">
</a>
</div>
这篇关于如何将skype-uri.js与个性化按钮一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!