Template:Sifuentes03

From 2014.igem.org

(Difference between revisions)
Line 332: Line 332:
-
$(window).scroll(function(e){
+
$("#featureBox").stick_in_parent()
-
  $el = $('.leftColumn');
+
 
-
  if ($(this).scrollTop() > 300 && $el.css('position') != 'fixed'){
+
 
-
    $('.leftColumn').css({'position': 'fixed', 'top': '200px'});
+
-
  }
+
-
  if ($(this).scrollTop() < 300 && $el.css('position') == 'fixed')
+
-
  {
+
-
    $('.leftColumn).css({'position': 'static', 'top': '200px'});
+
-
  }
+
-
});
+
</script>
</script>

Revision as of 18:46, 9 January 2015