DHTMLX Docs & Samples Explorer

### Object API Extended Init

Source

    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxaccordion.js"></script>
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxaccordion_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcontainer.js"></script>

    <div id="accordObj" style="position: relative; width: 320px; height: 400px;"></div>
    <script>var dhxAccord;
    function doOnLoad() {
        var dhxAccorData = {
            parent: "accordObj",
            icon_path: "../common/",
            multi_mode: true,
            items: [{
                id: "a1",
                text: "Gothic 3 Forsaken Gods",
                img: "icon3.gif",
                height: 200
            }, {
                id: "a2",
                text: "NFS Undercover",
                open: false
            }, {
                id: "a3",
                text: "Diablo 2 Lord Of Destruction",
                open: false
            }],
            effect: true;
        };
        dhxAccord = new dhtmlXAccordion(dhxAccorData);
    }</script>