ScrollTop is a function from teh dimensions plugin. I found the $(window).scrollTop(); works, still curoius why it does not work for functions.
polyrhythmic wrote: > > > AFAIK scrolltop is an element property, _not_ a function. > > See these for more info: > http://www.quirksmode.org/viewport/compatibility.html > http://developer.mozilla.org/en/docs/DOM:element.scrollTop > http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12 > > Also these sites are great general references for any future issues, > too. > > Charles > > On Feb 14, 1:25 pm, Eridius <[EMAIL PROTECTED]> wrote: >> i have this code >> >> alert($('body').scrollTop()); >> >> in opera and safari, I get the correct number however IE 6/7 and FF give >> me >> 0, anyone no why this would happen? My HTML is valid so that is not an >> issue, not sure what else tho would case IE and FF to me up. >> -- >> View this message in >> context:http://www.nabble.com/scrollTop-not-working-in-IE-6-7-or-FF-tp1548972... >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. > > -- View this message in context: http://www.nabble.com/scrollTop-not-working-in-IE-6-7-or-FF-tp15489721s27240p15491605.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.