Team:Goettingen/suplement/scripts
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 94: | Line 94: | ||
{ var sTop = document.getElementsByTagName('body')[0].scrollTop; | { var sTop = document.getElementsByTagName('body')[0].scrollTop; | ||
if(sTop > rTop) {ob1.style.position = 'fixed'; | if(sTop > rTop) {ob1.style.position = 'fixed'; | ||
- | + | ob1.style.top = '0px'; | |
- | + | ob1.style.width = '27%'} | |
else {ob1.style.position =''; ob1.style.top = '';ob1.style.width = ''} | else {ob1.style.position =''; ob1.style.top = '';ob1.style.width = ''} | ||
Revision as of 17:38, 26 June 2013