Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<html> | <html> | ||
- | < | + | <h1 id="title"></h1> |
<div id="merg"></div> | <div id="merg"></div> | ||
Line 40: | Line 40: | ||
{ | { | ||
document.getElementById("title").innerHTML=title; | document.getElementById("title").innerHTML=title; | ||
- | + | ||
- | + | ||
for (var i=0;i<days.length;i++) | for (var i=0;i<days.length;i++) | ||
{ | { | ||
- | + | var div=document.createElement("div"); | |
- | + | var h=document.createElement("h3"); | |
- | + | h.innerHTML=days[i]; | |
- | + | div.setAttribute("id",days[i]); | |
- | document.getElementById("merg").appendChild( | + | document.getElementById("merg").appendChild(h); |
- | document.getElementById("merg").appendChild( | + | document.getElementById("merg").appendChild(div); |
fill(days[i]); | fill(days[i]); | ||
Revision as of 20:58, 25 October 2008
|