Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
Line 28: Line 28:
   </li>
   </li>
  </ul>
  </ul>
-
</div></html>
+
</div>
 +
<script type="text/javascript">
 +
/*
 +
* Peking 2012 Following
 +
* by Sun Sibai
 +
*/
 +
var subfirst = document.getElementById("PKU_subsubmenu").getElementsByTagName("li")[0];
 +
var sub1hght = 0;
 +
function Following()
 +
{
 +
  sub1hght = sub1hght * 0.4 + document.documentElement.ScrollTop * 0.6;
 +
  subfirst.style.marginTop = sub1hght + 'px';
 +
}
 +
var handleFollowing = setInteval(Following,60);
 +
</script>
 +
</html>

Revision as of 07:01, 14 September 2012