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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -