Posted on April 25, 2013 by Michael Rosario
Total Posts: 33 | Join date: 03-12-11
var offset = 505; /* Average number of heights */
$(document).scroll(function(){
$(".NewsItem").each(function(){
var scroller = $(this).position().top*1-offset;
if($(document).scrollTop() > scroller && $(document).scrollTop() < $(this).position().top){
current = $(this).attr("id");
}
});
});
Tags: There are no tags for this entry.