var link = document.createElement('a');
link.href = 'skype:' + username + '?call';
Please follow the steps below:
Step 1. Adding the “Skype” button to the eMag.
Make sure you are in the Toolbox mode
Create a button or another object and place it in the desired location in your eMag
In the Properties panel, select Events tab
Select Mouse Click=> General =>Open external link
NAME should be changed to the Skype ID of the intended call recipient (e.g. your own ID)
eMag will use Skype installed in the viewer’s machine
Embedding of the code can be implemented in two ways:
Integrating the Java script directly into the index.html file. In the published eMag, go to index.html file and add the corresponding <script> tag with the above mentioned script.
Including an external .js file.
- Save the above mentioned script in a separate sript file, e.g. qq.js
- Open eMag Studio
- Open Advanced Options section
- Publish the eMag
- Copy the qq.js file in the root of the eMag. You can do this before the eMag upload or after it