3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <div id="demoDescription">
15 <p>This test is using multiple div-Elements</p>
16 <p>Added to the document using the "innerHTML" property.</p>
19 <script type="text/javascript">
20 qx.core.Init.getInstance().defineMain(function()
22 var d = qx.ui.core.ClientDocument.getInstance();
27 for (var i=1; i<=20; i++)
29 for (var j=1; j<=20; j++)
31 h.push("<div style='width:12px;height:12px;position:absolute;");
32 h.push("left:" + (20+(12*i)) + "px;");
33 h.push("top:" + (48+(12*j)) + "px;");
35 v = Math.round(20+(i*j)/2);
36 h.push("background-color:" + "rgb(" + v + "," + v + "," + v + ")");
37 h.push("' class='qx_ui_core_Widget_QxWidgetCore' id='Auto" + i + "|" + j + "'></div>");
41 document.body.innerHTML += h.join("");