SiteKiosk Documentation
One Step Back

SiteSkin Object




The SiteSkin object provides information about the current browser skin.


Members Table

    The following table lists the members provided by the SiteSkin object.

    Members
    ObjectsDescription
    ConfigIXMLDOMNode object of the skin configuration.
    StringTableInstance of the StringTable object of SiteKioskWindow.
    PropertiesDescription
    SkinNameName of the current skin.
    SubSkinNameName of the current subskin.
    TaskbarVisibleIf the taskbar should be shown.
    EventsDescription
    OnSkinChangeFires when the browser skin changes.

Remarks
    This object is available through the main object SiteKiosk. Use the SiteSkin object to determine the browser skin name or its strings.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example shows skin information including all available skin languages.

    <html>
    <body>
    <table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
    cellpadding="5" style="font-family:verdana;font-size:8pt;"
    align="center">
    <tr><td bgcolor="f8f8f8">
    The following example shows skin information including all
    available skin languages. Click a language to activate it.
    </td></tr>
    <tr><td style="font-family:verdana;font-size:8pt;">
    <pre>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SkLang = SiteKioskWebBrowser.SiteKioskWindow.SkinLanguages;
    StrTab = SiteKiosk.SiteSkin.StringTable;
    document.writeln("Skin name: " + SiteKiosk.SiteSkin.SkinName);
    document.writeln("SubSkin name: "+SiteKiosk.SiteSkin.SubSkinName);
    for (var j = 1; j <= SkLang.Count; ++j)
    {
       if (SkLang.Item(j).LangID == StrTab.SelectedLanguage)
       {
          document.writeln("<span id='id_sklang'>Current language: " +
          SkLang.Item(j).Name + " (ID " + StrTab.SelectedLanguage +
          ")</span>");
       }
    }
    document.writeln("Available languages:<br>");
    for (var i = 1; i <= SkLang.Count; ++i)
    {
       if (SkLang.Item(i).Enabled) skenstatus = "";
       else skenstatus = "[deactivated in the configuration]";
       if (i !=1) document.writeln("");
       document.write("<a href='javascript:switchto(" +
       SkLang.Item(i).LangID + ");' style='text-decoration:none;'>" +
       SkLang.Item(i).Name + "</a>" + " (" + SkLang.Item(i).LangID +
       ")" + skenstatus);
    }
    SiteKioskWebBrowser.SiteKioskWindow.OnSkinLanguageChange = OSLCh;
    function OSLCh(newlangid)
    {
       for (var j = 1; j <= SkLang.Count; ++j)
       {
          if (SkLang.Item(j).LangID == newlangid)
          {
             id_sklang.innerHTML = "Current language: " +
             SkLang.Item(j).Name + " (ID " + newlangid + ")";
          }
       }
    }
    function switchto(switchid)
    {
       SiteKiosk.LocaleManager.LangID = switchid;
    }
    </SCRIPT>
    </pre>
    </td></tr>
    </table>
    </body>
    </html>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -