Team:Tianjin/header

From 2012.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 39: Line 39:
     }
     }
     }  
     }  
 +
    if(scrollPos < 110){
 +
document.getElementById("right-fixed").className="right-static";
 +
}
 +
else{
 +
document.getElementById("right-fixed").className="right-fixed";
 +
}
     if(scrollPos < 216){
     if(scrollPos < 216){
document.getElementById("secondpane").className=" ";
document.getElementById("secondpane").className=" ";
Line 48: Line 54:
window.onscroll=getScrollTop;
window.onscroll=getScrollTop;
</script>
</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>
 
-
 
</html>
</html>
Line 91: Line 71:
<div id="track">
<div id="track">
-
<div id="right-fixed">
+
<div id="right-fixed" class="right-static">
<div id="nav-5" class="block" style="background:{{{Bgc5}}};position:relative;">[[file:{{{B5}}}|link={{{url5}}}]]
<div id="nav-5" class="block" style="background:{{{Bgc5}}};position:relative;">[[file:{{{B5}}}|link={{{url5}}}]]
<div id="navtext-5" class="navtext" style="position:absolute;left:5px;top:5px;">[[file:{{{Btr5}}}|link={{{url5}}}]]</div></div>
<div id="navtext-5" class="navtext" style="position:absolute;left:5px;top:5px;">[[file:{{{Btr5}}}|link={{{url5}}}]]</div></div>

Latest revision as of 07:25, 24 September 2012