Team:NJAU China/Background

From 2014.igem.org

(Difference between revisions)
Line 261: Line 261:
function Following()
function Following()
{
{
-
   sub1hght=sub1hght*0.9+(document.documentElement.scrollTop+document.body.scrollTop)*0.1-10;
+
   sub1hght=sub1hght*0.9+(document.documentElement.scrollTop+document.body.scrollTop)*0.05-5;
   if (sub1hght<0) {sub1hght=0;}
   if (sub1hght<0) {sub1hght=0;}
   subfirst.style.marginTop = sub1hght + 'px';
   subfirst.style.marginTop = sub1hght + 'px';

Revision as of 18:33, 15 October 2014

Home