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++) | ||
{ | { | ||
- | + | divs[i]=document.createElement("div"); | |
- | + | hs[i]=document.createElement("h1"); | |
- | + | hs[i].innerHTML=days[i]; | |
- | + | divs[i].setAttribute("id",days[i]); | |
- | document.getElementById("html").appendChild( | + | document.getElementById("html").appendChild(hs[i]); |
- | document.getElementById("html").appendChild( | + | document.getElementById("html").appendChild(divs[i]); |
fill(days[i]); | fill(days[i]); | ||
} | } |
Revision as of 20:26, 25 October 2008
|