Template:Team:Amsterdam/Sidebar1

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
-
<div id="sidebar-area" style="position: fixed;">
+
<!-- Navigation scroll follow -->
 +
<script type="text/javascript">
 +
$(window).scroll(function () {
 +
var winPos = $(window).scrollTop();
 +
if (winPos > 110) {
 +
$("#sidebar-area").css({position:'fixed'});
 +
} else {
 +
$("#sidebar-area").css({position:'relative'});
 +
}
 +
});
 +
</script>  
<div class="content-block">
<div class="content-block">

Revision as of 19:03, 25 September 2012