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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -