2012-02-12 2 views
0

私はウェブプログラミングに少しばかり興味があります。私は、HTMLページにこのコードを配置する方法を理解していないDHTMLXビジュアルエディタ。生成されたコードの使い方

dhtmlx.image_path='./codebase/imgs/'; 

    var main_layout = new dhtmlXLayoutObject(document.body, '1C'); 

    var a = main_layout.cells('a'); 
    a.setHeight('0'); 
    a.setWidth('0'); 
    a.hideHeader(); 
    a.fixSize(0,1); 
    var toolbar_2 = a.attachToolbar(); 
    toolbar_2.setIconsPath('./codebase/imgs/'); 

    toolbar_2.loadXMLString('<toolbar><item type="button" text="" img="dhtmlxSuite/dhtmlxToolbar/codebase/imgs/dhxtoolbar_dhx_web/save.gif" imgdis="" title="Actualizar" /><item type="button" text="" img="dhtmlxSuite/dhtmlxToolbar/codebase/imgs/dhxtoolbar_dhx_web/text_document.gif" imgdis="" title="Editar" /><item type="button" text="" img="dhtmlxSuite/dhtmlxToolbar/codebase/imgs/dhxtoolbar_dhx_web/print.gif" imgdis="" title="Imprimir" /></toolbar>', function(){}); 

    var toolbar_1 = main_layout.attachToolbar(); 
    toolbar_1.setIconsPath('./codebase/imgs/'); 

    toolbar_1.loadXMLString('<toolbar><item type="button" text="N1" img="" /><item type="separator" /><item type="button" text="N2" /><item type="separator" /><item type="button" text="N3" img="" /><item type="separator" /><item type="button" text="N4" /><item type="separator" /><item type="button" text="N5" /></toolbar>', function(){}); 

DHTML 3.0 Visual Designerを使用すると、私は次のように自動的に生成されたコードで小規模なWebページを作成しました。このコードを<script>タグで囲み、function doOnLoad()を作成してから<body onload="doOnLoad()" style="width:100%; height:100%; margin:0px; overflow:hidden;">を追加しました。しかし、それは動作しません。

答えて

1

チェックあなたは

  • がdhtmlx.jsとdhtmlx.css
  • 場所のスクリプトブロックを含める

    • 場所基本的なhtmlタグに必要な、デザイナーからのコードを貼り付けthe docs