Wondering why I get this alert to work in Firefox and Safari but not Opera or IE... an开发者_JAVA百科y insight much appreciated!
$().scroll(function() {
var scrolledpx = parseInt($().scrollTop());
if (scrolledpx < 375) {
alert('true');
}
});
$(window).scroll(function() {
var scrolledpx = parseInt($(window).scrollTop());
if (scrolledpx < 375) {
alert('true');
}
});
精彩评论