Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
(→In the Lab) |
m |
||
Line 71: | Line 71: | ||
lightframe.insertBefore(showbox,lightframe.childNodes[0]); | lightframe.insertBefore(showbox,lightframe.childNodes[0]); | ||
+ | //图片 | ||
+ | garPic = document.createElement('img'); | ||
+ | with(garPic.style){ | ||
+ | position = 'relative'; | ||
+ | width = '1024px'; | ||
+ | marginLeft = 'auto'; | ||
+ | marginRight = 'auto'; | ||
+ | top = '20px'; | ||
+ | } | ||
+ | showbox.insertBefore(garPic,showbox.childNodes[0]); | ||
+ | |||
+ | //说明 | ||
+ | illus = document.createElement('p'); | ||
+ | showbox.insertBefore(illus,showbox.childNodes[1]; | ||
//背景框 | //背景框 | ||
Line 85: | Line 99: | ||
bkgbox.onclick = function(){document.body.removeChild(lightframe);} | bkgbox.onclick = function(){document.body.removeChild(lightframe);} | ||
+ | showGarPic(from,illustration){ | ||
+ | garPic.src = from; | ||
+ | document.body.insertBefore(lightframe,document.body.childNodes[0]); | ||
+ | illus.innerHTML = illustration; | ||
+ | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 17:17, 8 July 2013