javascript - Div to open after scrolling to bottom of page -



javascript - Div to open after scrolling to bottom of page -

i hidden div open 1 time reader has reached bottom of page. found one illustration uses asp , mysql. there more simple way javascript , div toggle?

well, post you're referring has js code necessary reacting on user scrolling bottom - only, instead of showing hidden, create phone call server fetch more info display, , that's when asp , mysql come play.

you need do

$(window).scroll(function(){ if ($(window).scrolltop() == $(document).height() - $(window).height()){ $('#idofyourhiddendiv').show(); } });

or (assuming have jquery available)

javascript html scroll hidden

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -