Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
m
Line 49: Line 49:
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';
Line 64: Line 64:
var subLhght = [120,120,120]; //Unit: Pixel
var subLhght = [120,120,120]; //Unit: Pixel
var subLhght_Cur = [0,0,0]; //Unit: Pixel
var subLhght_Cur = [0,0,0]; //Unit: Pixel
-
var subLhand_Wither = [null,null,null,null];
+
var subLhand_Wither = [null,null,null];
var subLhand_Growth = null;
var subLhand_Growth = null;
var subLhand_Return = null;
var subLhand_Return = null;

Revision as of 02:35, 16 September 2012