Team:Shenzhen BGIC ATCG/temp/menu.html
From 2013.igem.org
(Difference between revisions)
Line 34: | Line 34: | ||
$(window).scroll(function(){ | $(window).scroll(function(){ | ||
var scroH = $(this).scrollTop(); | var scroH = $(this).scrollTop(); | ||
- | if(scroH>=board9_top){ | + | var screenH = window.screen.availHeight; |
+ | if(scroH>=board9_top - screenH){ | ||
set_cur("#navleftsub9"); | set_cur("#navleftsub9"); | ||
}else if(scroH>=board8_top){ | }else if(scroH>=board8_top){ |
Revision as of 17:34, 15 September 2013