jquery Programming Glossary: bg.bind
jQuery - drag div css background http://stackoverflow.com/questions/11271704/jquery-drag-div-css-background false bg.unbind 'mousemove' move if e.type 'mousedown' origin.x e.clientX origin.y e.clientY movecontinue true bg.bind 'mousemove' move else document.body .focus e.stopPropagation return false function reset start x 0 y 0 this .css 'backgroundPosition'.. document.body .focus e.stopPropagation return false function reset start x 0 y 0 this .css 'backgroundPosition' '0 0' bg.bind 'mousedown mouseup mouseleave' handle bg.bind 'dblclick' reset http jsfiddle.net userdude q6r8f 4 Original Answer HTML div.. false function reset start x 0 y 0 this .css 'backgroundPosition' '0 0' bg.bind 'mousedown mouseup mouseleave' handle bg.bind 'dblclick' reset http jsfiddle.net userdude q6r8f 4 Original Answer HTML div class bg img div CSS div.bg img background..
|