DHTMLX Docs & Samples Explorer

Skinning

Set skin to dhx_skyblue (default), dhx_blue, dhx_black, dhx_web or dhx_terrace
Source
<script type="text/javascript" src="../../codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../../codebase/dhtmlxtoolbar.js"></script>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_skyblue.css"></link>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_blue.css"></link>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_black.css"></link>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_web.css"></link>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_terrace.css"></link>
 
<div style="height: 150px;"><div id="toolbarObj"></div></div>
Set skin to <a href="javascript:setSkin('dhx_skyblue')">dhx_skyblue</a> (default),
<a href="javascript:setSkin('dhx_blue')">dhx_blue</a>,
<a href="javascript:setSkin('dhx_black')">dhx_black</a>,
<a href="javascript:setSkin('dhx_web')">dhx_web</a> or
<a href="javascript:setSkin('dhx_terrace')">dhx_terrace</a>
<script>
var toolbar;
function doOnLoad() {
    toolbar = new dhtmlXToolbarObject("toolbarObj");
    setSkin("dhx_skyblue");
}
function setSkin(skin) {
    if (skin != null) {
        toolbar.clearAll();
        toolbar.setSkin(skin);
    }
    toolbar.setIconsPath("../common/" + (skin == "dhx_black" ? "imgs2": "imgs") + "/");
    toolbar.loadXML("../common/dhxtoolbar.xml?e=" + new Date().getTime());
}
</script>