Skype Call Button

Hey guys

Am hoping somebody would be so kind to help me with this, I am trying to add a skype call button to my app, but am a little lost…

First of all its a case of changing the value in javascript using php and then also adding php into the javascript code… Did I mention I was a little lost lol

So here is an example code of the call button:

<script type=“text/javascript” src=“https://secure.skypeassets.com/i/scom/js/skype-uri.js”></script>
<div id=“SkypeButton_Call_name.name_1”>
<script type=“text/javascript”>
Skype.ui({
“name”: “dropdown”,
“element”: “SkypeButton_Call_name.name_1”,
“participants”: [“name.name”],
“imageSize”: 24
});
</script>
</div>

So viewing it above I need to change the <div id=“SkypeButton_Call_name.name_1”> “name.name” and then also the ending number.
The same for this line: “element”: “SkypeButton_Call_name.name_1”,
And then also change the “participants”: [“name.name”],

Maybe somebods has already done this and has a workign example? Or if somebody is so amazing and would write me a snippet to use for this I would be ever so happy.

Thanks in advance!

you nned to change it based on what?.

Regards

needs to be changed based on the skype name:
“element”: “SkypeButton_Call_name.name_1”,
“participants”: [“name.name”],

name.name = the skype contact name taken from DB skype field