Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
(→edit0) |
m |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
<script> | <script> | ||
- | |||
$(".team").addClass("deact"); | $(".team").addClass("deact"); | ||
+ | //建立数组数据 | ||
- | |||
</script> | </script> | ||
</html> | </html> | ||
Line 47: | Line 46: | ||
</div><!--close col-right--> | </div><!--close col-right--> | ||
+ | <script> | ||
+ | //lightbox骨架 | ||
+ | |||
+ | lightframe = document.createElement('div'); | ||
+ | with(lightframe.style){ | ||
+ | position = 'absolute'; | ||
+ | display = 'block'; | ||
+ | height = '100%'; | ||
+ | width = '100%'; | ||
+ | zIndex = '299'; | ||
+ | } | ||
+ | |||
+ | //显示图片框 | ||
+ | showbox = document.createElement('div'); | ||
+ | with(showbox.style){ | ||
+ | position = 'relative'; | ||
+ | width = '1024px'; | ||
+ | marginLeft = 'auto'; | ||
+ | marginRight = 'auto'; | ||
+ | top = '100px';} | ||
+ | lightframe.insertBefore(showbox,lightframe.childNodes[0]); | ||
+ | |||
+ | |||
+ | //背景框 | ||
+ | bkgbox = document.createElement('div'); | ||
+ | with(bkgbox.style){ | ||
+ | position = 'absolute'; | ||
+ | display = 'block'; | ||
+ | width = '100%'; | ||
+ | height = '100%'; | ||
+ | background = 'black'; | ||
+ | opacity = 0.8; | ||
+ | } | ||
+ | lightframe.insertBefore(bkgbox,showbox); | ||
+ | |||
+ | </script> | ||
</html> | </html> |
Revision as of 17:34, 4 July 2013