Team:Tianjin/header
From 2012.igem.org
(Difference between revisions)
Line 49: | Line 49: | ||
</script> | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function | + | function getScrollTop2() { |
- | var | + | var scrollPos2; |
if (window.pageYOffset) { | if (window.pageYOffset) { | ||
- | + | scrollPos2 = window.pageYOffset; | |
} | } | ||
else if (document.compatMode) { | else if (document.compatMode) { | ||
if(document.compatMode != 'BackCompat') | if(document.compatMode != 'BackCompat') | ||
{ | { | ||
- | + | scrollPos2 = document.documentElement.scrollTop; | |
} | } | ||
else if (document.body) | else if (document.body) | ||
{ | { | ||
- | + | scrollPos2 = document.body.scrollTop; | |
} | } | ||
} | } | ||
- | if( | + | if(scrollPos2 < 110){ |
document.getElementById("right-fixed").className=" "; | document.getElementById("right-fixed").className=" "; | ||
} | } | ||
Line 71: | Line 71: | ||
} | } | ||
} | } | ||
- | window.onscroll= | + | window.onscroll=getScrollTop2; |
</script> | </script> | ||
Revision as of 11:22, 23 September 2012
[[file:{{{image}}}|link=]]