Team:UNITN-Trento/JS/Parts
From 2013.igem.org
$(document).ready(function() { oSch(function() { scroll = $("#tn-main-wrap-wrap").scrollTop(); height = $(".tn-parts.container .content").css('height'); if(height >= scroll) { margin = scroll; } $(".tn-parts-container .menu").css({'margin-top' : margin}); }); });