views:

165

answers:

2

On those Windows machines with Skype installed, it tends to convert all phone-formatted numbers to Skype links so you can click it in order to make a call on Skype.

The question is how do you prevent that to happen for a certain number on page?

+5  A: 

Try not outputting the numbers as a single piece of text. Instead of

<span>888-555-1212</span>

try

<span>888<span>-</span>555<span>-</span>1212</span>
John Saunders
Nice workaround...
Yuval A
@Yuval: didn't I just write to you? (http://stackoverflow.com/users/255562/ashish-gupta)
John Saunders
@John - nope :)
Yuval A
@Yuval: but you see the resemblance?
John Saunders
@John - only in the avatar...
Yuval A
A: 

You can also leave the number alone and remove it with JS.

jQuery(document).ready(function(){jQuery('.skype_pnh_container').parent().html('(555) 222 - 3333');
jQuery('.skype_pnh_container').remove()}

It is harder to do in normal HTML, but Skype doesn't remove the parent container, so put the number in something with an ID, you can do a "getElementById" on it, set the innerHTML to the phone number.

document.getElementById('phoneNumberContainer').innerHTML='(555) 222 - 4444';

Aaron Harun