Team:Uppsala/Templates/TselectTier2
From 2014.igem.org
(Difference between revisions)
Line 78: | Line 78: | ||
var button = document.createElement("img"); | var button = document.createElement("img"); | ||
button.src = image; | button.src = image; | ||
- | button.setAttribute("height", " | + | button.setAttribute("height", "157"); |
- | button.setAttribute("width", " | + | button.setAttribute("width", "157"); |
var linkText = document.createTextNode(text); | var linkText = document.createTextNode(text); | ||
a.appendChild(button); | a.appendChild(button); | ||
a.appendChild(linkText); | a.appendChild(linkText); | ||
a.href = link; | a.href = link; | ||
- | |||
node.appendChild(a); | node.appendChild(a); | ||
document.getElementById("tabSection").appendChild(node); | document.getElementById("tabSection").appendChild(node); | ||
- | + | ||
} | } | ||
Revision as of 09:56, 21 July 2014