Team:ZJU-China/template/project-menu

From 2013.igem.org

(Difference between revisions)
Line 5: Line 5:
margin-top: 50px;
margin-top: 50px;
margin-bottom: 50px;
margin-bottom: 50px;
-
}
 
-
.stickToTop {
 
-
position: fixed;
 
-
top: 5px;
 
}
}
.sidebar1 {
.sidebar1 {
Line 70: Line 66:
       <div class="flagcounter"><a href="http://info.flagcounter.com/Nqab"><img src="http://s03.flagcounter.com/count/Nqab/bg_FFFFFF/txt_000000/border_CCCCCC/columns_2/maxflags_20/viewers_0/labels_1/pageviews_1/flags_0/" alt="Flag Counter" border="0"></a></div>
       <div class="flagcounter"><a href="http://info.flagcounter.com/Nqab"><img src="http://s03.flagcounter.com/count/Nqab/bg_FFFFFF/txt_000000/border_CCCCCC/columns_2/maxflags_20/viewers_0/labels_1/pageviews_1/flags_0/" alt="Flag Counter" border="0"></a></div>
     </div>
     </div>
-
<script type="text/javascript">
 
-
        $(window).scroll(function () {
 
-
            var scrollPos = $(window).scrollTop();
 
-
            if (scrollPos > 330) {
 
-
                $(".sidebar1").addClass("stickToTop");
 
-
            } else {
 
-
                $(".sidebar1").removeClass("stickToTop");
 
-
            }
 
-
   
 
-
        });
 
-
</script>
 
</html>
</html>

Revision as of 13:55, 23 September 2013