Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 90: | Line 90: | ||
away = true; | away = true; | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
- | position: 'fixed' | + | position: 'fixed', |
+ | left: '14px' | ||
}).animate({'top': -22-$('#toc').height()+wheight+'px'}, 500); | }).animate({'top': -22-$('#toc').height()+wheight+'px'}, 500); | ||
}} | }} | ||
Line 97: | Line 98: | ||
if ($(document).scrollTop() < 409){ | if ($(document).scrollTop() < 409){ | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
- | position: 'absolute' | + | position: 'absolute', |
+ | left: '-265px' | ||
}).animate({'top': '0px'}, 500); | }).animate({'top': '0px'}, 500); | ||
} | } | ||
else { | else { | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
- | position: 'fixed' | + | position: 'fixed', |
+ | left: '14px' | ||
}).animate({'top': '78px'}, 500); | }).animate({'top': '78px'}, 500); | ||
} | } |
Revision as of 07:14, 25 September 2013