Recommended:

  • phpclasses.org
  • jsclasses.org
  • jsmag.com
  • siteapps.com
  • View our reviews on Hot Scripts
  • JS Tutorial
  • scripts.com
  • securesignup.com




Recent Comments

Powered by Disqus




Back to articles

Display skype status image on your website

Skype status class can display your skype status as skype image on your website and update it automatically using specified update interval. This class also provides option to use skype functions on displayed status image, like call, chat, add to contacts, show profile, send voicemail or file.

It is also possible to provide multiple usernames as array to create multi user actions like multi user chatroom, conference call, etc. But only first user will be used to check for skype status.

Note that you must enable "Allow my online status to be shown on the web" in your skype privacy settings, or your status will be shown as offline.

Package contains skype_status.js and skype_status.packed.js (packed javascript), and one example file - example.html (to demonstrate how to use this package).

Contents

Download

Example codes

<html>
<head>
</head>
<body>
<div id='skype_status'></div>
<script src="./skype_status.packed.js" type="text/javascript"></script>
<script>
var sk = new skype_status("skype_status", {
        /***************************************
        * Your skype username
        * Multiple usernames can be provided in array
        * to create multi user chat, conference call, etc
        * but only first user will be used to get online status
        ****************************************/
        skype_name: "ar2rsawseen",
        /***************************************
        * Possible types of images:
        * balloon          - Balloon style 
        * bigclassic       - Big Classic Style 
        * smallclassic     - Small Classic Style 
        * smallicon        - Small Icon (transparent background) 
        * mediumicon       - Medium Icon 
        * dropdown-white   - Dropdown White Background 
        * dropdown-trans   - Dropdown Transparent Background
        ****************************************/
        image: "balloon",
        /***************************************
        * Possible types of actions:
        * ""          - Empty, no action. 
        * call        - Call to user
        * chat        - Open chat window
        * add         - Add to skype
        * userinfo    - Open user profile 
        * voicemail   - Leave voicemail (Only if you have voicemail subscription) 
        * sendfile    - Send file to user 
        ****************************************/
        action: "call",
        //how often to recheck skype status in miliseconds
        update: 10000
    }
);
</script>
</body>
</html>

Examples in action

Example scripts provided with package in action:

Method list

Constructor

Back to method list

Method namenew skype_status(id, config)
DescriptionCreates class instance with provided configuration
Input parameters

string id - ID of element where to display skype status

json config - json structure with configuration:

  • string or array skype_name - Your skype username. Multiple usernames can be provided in array to create multi user chat, conference call, etc but only first user will be used to get online status (default: 'echo123')
  • string image - Image type to display skype status. (default: 'balloon') Possible values:
    • balloon - Balloon style
    • bigclassic - Big Classic Style
    • smallclassic - Small Classic Style
    • smallicon - Small Icon (transparent background)
    • mediumicon - Medium Icon
    • dropdown-white - Dropdown White Background
    • dropdown-trans - Dropdown Transparent Background
  • string action - which action to perform when status image is clicked (default: no action). Pssible values:
    • '' - Empty, no action.
    • call - Call to user
    • chat - Open chat window
    • add - Add to skype
    • userinfo - Open user profile
    • voicemail - Leave voicemail (Only if you have voicemail subscription)
    • sendfile - Send file to user
  • int update - how often to recheck for status update in miliseconds(default: 10000 or every 10 seconds). If you don't want to check for status update, provide 0 or lesser value

Latest changes

None for now

Rate us

Like our script? Rate it at JavaScript > Hot Scripts

Scripts.com
RATE ME!

Try it out and Rate on JSclasses.org

Support

JS classes support forum or comments below


You may also be interested in:

Powered by BlogAlike.com

blog comments powered by Disqus