Team:NCTU Formosa/source/header-team
From 2013.igem.org
(Difference between revisions)
Line 71: | Line 71: | ||
window.onload = function() | window.onload = function() | ||
{ | { | ||
- | + | if ($(document).scrollTop() > dheight/2) { | |
+ | if (!away) { | ||
+ | away = true; | ||
+ | $('#toc').stop().css({ | ||
+ | position: 'fixed', | ||
+ | left: '15px' | ||
+ | }).animate({'top': -22-$('#toc').height()+wheight+'px'}, 500); | ||
+ | } | ||
+ | } | ||
var $container = $('#membersnadvisers'); | var $container = $('#membersnadvisers'); | ||
$container.imagesLoaded( function() { | $container.imagesLoaded( function() { |
Revision as of 19:22, 27 September 2013