Team:UniSalento Lecce/js/fixed-sidebar.js
From 2013.igem.org
(Difference between revisions)
Mattcrow (Talk | contribs)
(Created page with "$(window).scroll(function() { if ($(this).scrollTop() > 230) { $("nav").css({ "position": "fixed", "top": 0 }); } else { $("nav").css({ "position": "...")
Newer edit →
(Created page with "$(window).scroll(function() { if ($(this).scrollTop() > 230) { $("nav").css({ "position": "fixed", "top": 0 }); } else { $("nav").css({ "position": "...")
Newer edit →
Revision as of 13:55, 30 September 2013
$(window).scroll(function() {
if ($(this).scrollTop() > 230) { $("nav").css({ "position": "fixed", "top": 0 }); } else { $("nav").css({ "position": "absolute", "top": "230px" }); }
});