Template:Peking2012 Color Project
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 76: | Line 76: | ||
function Following() | function Following() | ||
{ | { | ||
- | sub1hght=sub1hght*0.9+document.documentElement.scrollTop*0.1-10; | + | sub1hght=sub1hght*0.9+(document.documentElement.scrollTop+document.body.scrollTop)*0.1-10; |
if (sub1hght<0) {sub1hght=0;} | if (sub1hght<0) {sub1hght=0;} | ||
subfirst.style.marginTop = sub1hght + 'px'; | subfirst.style.marginTop = sub1hght + 'px'; |
Revision as of 02:34, 16 September 2012