¡@

Home 

2014/10/16 ¤W¤È 12:04:08

jquery Programming Glossary: imgx

Rotate sprite javascript

http://stackoverflow.com/questions/3851896/rotate-sprite-javascript

function var position div#img .position mouseX mouseY imgX imgY degree imgX position.left imgY position.top #main .mousemove.. position div#img .position mouseX mouseY imgX imgY degree imgX position.left imgY position.top #main .mousemove function e.. over x soh cah toa degree Math.atan2 e.pageY imgY e.pageX imgX 180 Math.PI degree degree 90 360 jQuery normalizes pageX and..

Javascript wait for image to load before calling Ajax

http://stackoverflow.com/questions/4943495/javascript-wait-for-image-to-load-before-calling-ajax

newImgID .width var imgH '#imgA' newImgID .height var imgX '#imgA' newImgID .position .left var imgY '#imgA' newImgID .position.. x y resourceData newImgID new Array 0 imgIndex imgW imgH imgX imgY alert 'artworkAjaxHandler.ashx type addResource uploadID.. ' page ' currentPage ' w ' imgW ' h ' imgH ' x ' imgX ' y ' imgY Save this as a resource .ajax url 'artworkAjaxHandler.ashx..

Rotate sprite javascript

http://stackoverflow.com/questions/3851896/rotate-sprite-javascript

0 div#info position absolute bottom 0 left 0 p Javascript jQuery function var position div#img .position mouseX mouseY imgX imgY degree imgX position.left imgY position.top #main .mousemove function e degree is arctan y over x soh cah toa degree.. absolute bottom 0 left 0 p Javascript jQuery function var position div#img .position mouseX mouseY imgX imgY degree imgX position.left imgY position.top #main .mousemove function e degree is arctan y over x soh cah toa degree Math.atan2 e.pageY.. position.top #main .mousemove function e degree is arctan y over x soh cah toa degree Math.atan2 e.pageY imgY e.pageX imgX 180 Math.PI degree degree 90 360 jQuery normalizes pageX and pageY transfrom from 180 to 180 0 to 360 if degree 0 degree..

Javascript wait for image to load before calling Ajax

http://stackoverflow.com/questions/4943495/javascript-wait-for-image-to-load-before-calling-ajax

imgIndex 1 ' class mediaImg ' Get properties var imgW '#imgA' newImgID .width var imgH '#imgA' newImgID .height var imgX '#imgA' newImgID .position .left var imgY '#imgA' newImgID .position .top Add to array dbID imgarrIndex width height x y.. .position .top Add to array dbID imgarrIndex width height x y resourceData newImgID new Array 0 imgIndex imgW imgH imgX imgY alert 'artworkAjaxHandler.ashx type addResource uploadID ' currentDragImageID ' page ' currentPage ' w ' imgW ' h '.. type addResource uploadID ' currentDragImageID ' page ' currentPage ' w ' imgW ' h ' imgH ' x ' imgX ' y ' imgY Save this as a resource .ajax url 'artworkAjaxHandler.ashx type addResource uploadID ' currentDragImageID ' page..