Inserting the doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
the $("body").scrollTop() returns 0 instead of the correct value.
$("body").scrollTop()
Any suggestion?
asked Oct 23 '09 at 08:49
Bikrob 11●1●2
edited Oct 26 '09 at 19:57
Pietro Polsinelli ♦♦ 40●7
You should get the "document" scrollTop():
$(document).scrollTop()
answered Oct 23 '09 at 17:15
Matteo Bicocchi ♦♦ 1776●1●2●9
edited Oct 23 '09 at 20:31
Once you sign in you will be able to subscribe for any updates here
Answers
Answers and Comments
Tags:
jquery ×67 doctype ×2 scrolltop ×1
Asked: Oct 23 '09 at 08:49
Seen: 2,909 times
Last updated: Mar 07 '11 at 20:36
Disable automatic positioning and resize of containers
Do you create JS files and link to them, or write JS inline in the markup file?
Which Jquery option for this effect
2 Questions on the Extruder
Add callback function after showing the containerPlus
What plugins are there for logging?
Can jquery.mb.imgnavigator works with html links (like a map)?
syntaxe error in file mb.bgndGallery.js
Keeping the dock icon in a container.
Which CDN and technique should I use to get jQuery loaded?
jQuery main site - Matteo Bicocchi