Template:Sifuentes03

From 2014.igem.org

(Difference between revisions)
Line 327: Line 327:
         window.location.href = $(this).find("a:first").attr("href");
         window.location.href = $(this).find("a:first").attr("href");
     }
     }
 +
});
 +
 +
 +
 +
$(window).scroll(function(e){
 +
  $el = $('.leftColumn');
 +
  if ($(this).scrollTop() > 200 && $el.css('position') != 'fixed'){
 +
    $('.leftColumn').css({'position': 'fixed', 'top': '0px'});
 +
  }
 +
  if ($(this).scrollTop() < 200 && $el.css('position') == 'fixed')
 +
  {
 +
    $('.leftColumn).css({'position': 'static', 'top': '0px'});
 +
  }
});
});

Revision as of 18:33, 9 January 2015