javascript - jQuery scrolltop firefox not working -
this script:
function onscroll(){ document.getelementbyid("divs").style.top=""+$('body').scrolltop()+"px"; }
fiddle: http://jsfiddle.net/hed2j/1/
doesn't work on latest firefox version!
what doing wrong? :) help!
edit: edited jsfiddle , full script :) attached onscroll event
try fiddle, working in chrome, ie , latest version of mozilla : http://jsfiddle.net/hed2j/3/
i replace $('body').scrolltop()
$(window).scrolltop()
.
Comments
Post a Comment