Team:Goettingen/templates/headerGray
From 2013.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
</head> | </head> | ||
<script> | <script> | ||
- | + | ||
+ | $(document).ready(function(){ | ||
+ | |||
+ | bbox = document.createElement('div') | ||
with(bbox.style){ | with(bbox.style){ | ||
+ | height = '57px'; | ||
+ | position = 'absolute'; | ||
+ | zIndex = '-2'; | ||
+ | background = '#7c7c7c'; | ||
+ | width = '100%'; | ||
+ | top = $(document).height() - 57 + 'px';} | ||
+ | |||
+ | document.body.insertBefore(bbox,null) | ||
+ | |||
+ | }); | ||
+ | |||
+ | tbox = document.createElement('div') | ||
+ | with(tbox.style){ | ||
height = '70px'; | height = '70px'; | ||
position = 'absolute'; | position = 'absolute'; | ||
Line 17: | Line 33: | ||
width = '100%'; | width = '100%'; | ||
top = '0px';} | top = '0px';} | ||
+ | |||
igemlink = document.createElement('a'); | igemlink = document.createElement('a'); | ||
igemlink.href="https://2013.igem.org"; | igemlink.href="https://2013.igem.org"; | ||
Line 30: | Line 47: | ||
igemlink.insertBefore(igemlogo,null); | igemlink.insertBefore(igemlogo,null); | ||
- | document.body.insertBefore( | + | document.body.insertBefore(tbox,document.body.childNodes[0]) |
</script> | </script> | ||
<a href="#" class="top"><img src="https://static.igem.org/mediawiki/2013/0/08/Go2top.png" /></a> | <a href="#" class="top"><img src="https://static.igem.org/mediawiki/2013/0/08/Go2top.png" /></a> |
Revision as of 21:31, 25 September 2013