Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 39: Line 39:
function merge(days)
function merge(days)
{
{
 +
var divs=new Array(days.length);
 +
var hs=new Array(days.length);
for (var i=0;i<merge.length;i++)
for (var i=0;i<merge.length;i++)
{
{
-
var div=document.createElement("div");
+
divs[i]=document.createElement("div");
-
var h=document.createElement("h1");
+
hs[i]=document.createElement("h1");
-
h.innerHTML=days[i];
+
hs[i].innerHTML=days[i];
-
div.setAttribute("id",days[i]);
+
divs[i].setAttribute("id",days[i]);
-
document.getElementById("html").appendChild(h);
+
document.getElementById("html").appendChild(hs[i]);
-
document.getElementById("html").appendChild(div);
+
document.getElementById("html").appendChild(divs[i]);
fill(days[i]);
fill(days[i]);
}
}

Revision as of 20:26, 25 October 2008

Gallery Bricks Notebook Team Project Home