Better Skype embedding

Posted on 29. Jun, 2006 by Daniel Aleksandersen in Web Development

Embedding a Skype button on Websites and blogs have grown quite popular.

But it can most certainly be done better, and give readers a wider spectrum of contact options. Here is a good way of doing it, with code examples:

The example below provides readers with several contact options, a live status indicator and information on what software that is required to use the tools.

Daniel Aleksandersen

Skype connection status Chat | Leave voicemail | Profile | Add

Requires Skype.

Over at Aleksandersen’s blog this code has been implemented and styled to fit neatly into the sidebar. And a nice toolbar at the top of Birger’s blog.

The actions can be customized in accordance to the Skype link URI.

Remember! The status indicator must be switched on to be operational.

Code example

<h4>Full Name</h4>
<p class="skypetools">
<a href="skype:username?chat" title="Send instant message" type="application/x-skype"><img src="http://mystatus.skype.com/smallicon/username" alt="Skype connection status" title="Skype status" style="border:none;width:16px;height:16px;" /></a>
<a href="skype:username?chat" title="Send instant message" type="application/x-skype"><strong>Chat</strong></a> |
<a href="skype:username?voicemail" title="Leave a voicemail" type="application/x-skype">Leave voicemail</a> |
<a href="skype:username?userinfo" title="View Skype profile" type="application/x-skype">Profile</a> |
<a href="skype:username?add" title="Add to Skype's contact list" type="application/x-skype">Add</a>
</p>
<p><small>
Contact actions requires <a href="http://share.skype.com/in/102/268643" title="More information and free download.">Skype</a>.
</small></p>

Note: Voicemail is a payed service and must be enabled to work. Change it with call to get calls directly instead.

Detecting Skype

In HTML (but not in XHTML) pages, users without Skype can be informed that Skype is required and provided with a download link.

To do so: add the JavaScript below right above </body> and add onclick="return skypeCheck();" to all Skype links.

<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>

3 Responses to “Better Skype embedding”

  1. [...] Update: Go over to TheWDJ, and look how it is done. [...]

  2. Daniel

    01. Jul, 2006

    The next version of skypeChekc.js will work with XHTML pages. It will be around in a week or two.

  3. Nami E.

    03. Sep, 2006

    thanks!!! I will use this on my own website soon!

ss_blog_claim=8912abc04571f53d281d0a8b3b911a9c ss_blog_claim=8912abc04571f53d281d0a8b3b911a9c