DHTMLX Docs & Samples Explorer

Skinning

Set skin to dhx_skyblue (default), dhx_blue or dhx_black
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>
 
<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> or <a href="javascript:setSkin('dhx_black')">dhx_black</a></a>
<br>
<script>
var toolbar;
function doOnLoad() {
    toolbar = new dhtmlXToolbarObject("toolbarObj");
    toolbar.setIconsPath("../common/imgs/");
    toolbar.loadXML("../common/dhxtoolbar.xml?e=" + new Date().getTime());
}
function setSkin(skin) {
    toolbar.setSkin(skin);
}
</script>