Team:Tianjin/frame/modeling

From 2012.igem.org

(Difference between revisions)
Line 78: Line 78:
   }
   }
-
.modmenu {
 
-
POSITION: fixed; WIDTH: 170px;top:0px;
 
-
}
 
</style>
</style>
Line 123: Line 120:
   </div>      <!--Code for menu ends here-->
   </div>      <!--Code for menu ends here-->
</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 < 100){
 
-
document.getElementById("modmenu").className=" ";
 
-
}
 
-
else{
 
-
document.getElementById("modmenu").className="modmenu";
 
-
}
 
-
}
 
-
window.onscroll=getScrollTop;
 
-
</script>
 
</html>
</html>
<div id="text-content">
<div id="text-content">

Revision as of 13:44, 20 September 2012