0

I'm looking to add a Skype Button which shows a Users Skype Status in the Quick Launch in Sharepoint 2010.

I can successfully add this Control to a Content Editor Web Part as I have easy access to the HTML Editor. I understand I can run basic Javascript functions like alert in the http:// area of the Quick Launch.

The code I am attempting to add to the Quick Launch is below:

<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script><a href="skype:testskypeuser?call"><img src="http://mystatus.skype.com/bigclassic/tarponithelpdesk" style="border: none;" width="182" height="44" alt="My status" /></a>

Is it possible to add a control like this to the Quick Launch of Sharepoint 2010?

1

As long as the script is loaded (skypeCheck.js) you can probably just inject the a and img. For example using jQuery:

$('.s4-ql').prepend($('<a>').
  attr('href', 'skype:testskypeuser?call').
  append($('<img>').
           attr('src', 'http://mystatus.skype.com/bigclassic/tarponithelpdesk').
           css({border:'none',width:182,height:44})
  )
);

You can also just move it in the DOM, like this:

$('.s4-sql').prepend($('a[href^=skype]');
| improve this answer | |
  • Using the jQuery above, would I need to add a Quick Launch item ahead of time, or will this directly inject the item? – Lando Nov 2 '12 at 16:39
  • For the first example you would not need the item ahead of time. For the latter you would. Choose which one to use :) – eirikb Nov 2 '12 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.