I have an ad in my header and a fixed ad at the bottom of my page that is always there. I want the fixed ad to appear only if the user has scrolled under the header ad. I lo
See jQuery.scroll(). You can bind this to the window element to get your desired event hook.
On scroll, then simply check your scroll position:
$(window).scroll(function() { var scrollTop = $(window).scrollTop(); if ( scrollTop > $(headerElem).offset().top ) { // display add } });