Team:Tianjin/header
From 2012.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
scrollPos = window.pageYOffset; | scrollPos = window.pageYOffset; | ||
} | } | ||
- | else if (document.compatMode | + | else if (document.compatMode) { |
- | + | if(document.compatMode != 'BackCompat') | |
- | + | { | |
- | + | scrollPos = document.documentElement.scrollTop; | |
- | scrollPos = document.body.scrollTop; | + | } |
+ | else if (document.body) | ||
+ | { | ||
+ | scrollPos = document.body.scrollTop; | ||
+ | } | ||
} | } | ||
if(scrollPos < 275){ | if(scrollPos < 275){ |
Revision as of 09:57, 23 September 2012
[[file:{{{image}}}|link=]]