Template:Team:Amsterdam/Sidebar1
From 2012.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | < | + | <!-- 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 18:54, 25 September 2012