Trying to figure out how I use the fadeIn() function when I scroll to the bottom of the page. It seems to be a reasonably common technique these days and I'd like to use it. My code is as follows, but I can't find a way to get the images to fade in.
var c = 0;
$(function() {
$(window).scroll(function() {
if ($(window).scrollTop() == $(document).height() - $(window).height()) {
c = c + 1;
if (c <= 7) {
$('#intro').html($('#intro').html() + '<ul><li><a target="_blank" href="http://mywebsite.com"><img src="images/filler.png" alt="" />Count = ' + c + '»</a></li></ul><br class="clear" />');
} else if (c == 8) {
$('#intro').html($('#intro').html() + '<br /><p><a target="_blank" href="example_page.html">Search historical stories</a></p>');
} else {
// do nothing
}
}
});
});