Team:Tianjin/header

From 2012.igem.org

(Difference between revisions)
Line 47: Line 47:
}
}
window.onscroll=getScrollTop;
window.onscroll=getScrollTop;
-
</script>
 
-
<script type="text/javascript">
 
-
function getScrollTop2() {
 
-
    var scrollPos2;
 
-
    if (window.pageYOffset) {
 
-
        scrollPos2 = window.pageYOffset;
 
-
    }
 
-
    else if (document.compatMode) {
 
-
    if(document.compatMode != 'BackCompat')
 
-
    {
 
-
        scrollPos2 = document.documentElement.scrollTop;
 
-
        }
 
-
        else if (document.body)
 
-
        {
 
-
        scrollPos2 = document.body.scrollTop;
 
-
    }
 
-
    }
 
-
    if(scrollPos2 < 110){
 
-
document.getElementById("right-fixed").className=" ";
 
-
}
 
-
else{
 
-
document.getElementById("right-fixed").className="right-fixed";
 
-
}
 
-
}
 
-
window.onscroll=getScrollTop2;
 
</script>
</script>
-
 
</html>
</html>

Revision as of 11:28, 23 September 2012