Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
m
Line 38: Line 38:
function Following()
function Following()
{
{
-
   sub1hght = sub1hght * 0.8 + document.documentElement.scrollTop * 0.2;
+
   sub1hght=sub1hght*0.9+document.documentElement.scrollTop*0.1-10;
 +
  if (sub1hght<0) {sub1hght=0;}
   subfirst.style.marginTop = sub1hght + 'px';
   subfirst.style.marginTop = sub1hght + 'px';
}
}
-
var handleFollowing = setInterval(Following,50);
+
var handleFollowing = setInterval(Following,30);
</script>
</script>
</html>
</html>

Revision as of 07:18, 14 September 2012