Team:Tianjin/header

From 2012.igem.org

(Difference between revisions)
Line 25: Line 25:
</div></div>
</div></div>
</div>
</div>
-
<script type="text/javascript">
+
 
-
function getScrollTop() {
+
-
    var scrollPos;
+
-
    if (window.pageYOffset) {
+
-
        scrollPos = window.pageYOffset;
+
-
    }
+
-
    else if (document.compatMode && document.compatMode != 'BackCompat') {
+
-
        scrollPos = document.documentElement.scrollTop;
+
-
    }
+
-
    else if (document.body) {
+
-
        scrollPos = document.body.scrollTop;
+
-
    }
+
-
    if(scrollPos < 125){
+
-
document.getElementById("right-fixed").className=" ";
+
-
}
+
-
else{
+
-
document.getElementById("right-fixed").className="right-fixed";
+
-
}
+
-
}
+
-
window.onscroll=getScrollTop;
+
-
</script>
+
<div id="wrap">
<div id="wrap">
<div id="text-content" style="border:8px solid {{{BorCor}}}">
<div id="text-content" style="border:8px solid {{{BorCor}}}">

Revision as of 01:56, 22 August 2012