Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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]');
share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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