Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 65: | Line 65: | ||
with(showbox.style){ | with(showbox.style){ | ||
position = 'relative'; | position = 'relative'; | ||
- | |||
marginLeft = 'auto'; | marginLeft = 'auto'; | ||
marginRight = 'auto'; | marginRight = 'auto'; | ||
Line 75: | Line 74: | ||
with(garPic.style){ | with(garPic.style){ | ||
position = 'relative'; | position = 'relative'; | ||
- | + | height = '600px'; | |
marginLeft = 'auto'; | marginLeft = 'auto'; | ||
marginRight = 'auto'; | marginRight = 'auto'; | ||
Line 104: | Line 103: | ||
function showGarPic(from,illustration){ | function showGarPic(from,illustration){ | ||
garPic.src = from; | garPic.src = from; | ||
+ | showbox.style.width = getComputedStyle(garPic,null).width; | ||
document.body.insertBefore(lightframe,document.body.childNodes[0]); | document.body.insertBefore(lightframe,document.body.childNodes[0]); | ||
description.innerHTML = illustration; | description.innerHTML = illustration; |
Revision as of 17:33, 8 July 2013