Template:Team:Valencia Biocampus/Templates/Header

From 2013.igem.org

(Difference between revisions)
Line 2: Line 2:
<link rel="stylesheet" type="text/css" href="https://2013.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/css/main&action=raw&ctype=text/css" />
<link rel="stylesheet" type="text/css" href="https://2013.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/css/main&action=raw&ctype=text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
-
 
+
<script type="text/javascript">
 +
var showStaticMenuBar = false;
 +
$(window).scroll(function() {
 +
if(showStaticMenuBar == false){
 +
if($(this).scrollTop() >= 125){
 +
$("#top_menu_wrapper").addClass("fixedBar");
 +
$("#top_menu_wrapperFake").show();
 +
showStaticMenuBar=true;
 +
}
 +
}
 +
else{
 +
if($(this).scrollTop() <= 125){
 +
$("#top_menu_wrapper").removeClass("fixedBar");
 +
$("#top_menu_wrapperFake").hide();
 +
showStaticMenuBar=false;
 +
}
 +
}
 +
});
 +
</script>
<div id="header_wrapper">
<div id="header_wrapper">

Revision as of 22:16, 15 July 2013