warpshell.newattrs.x=winattrs.x+5
if (warpshell.newattrs.x winattrs.x+winattrs.w){//no space to the right?
warpshell.newattrs.y=winattrs.y+winattrs.h/2-warpshell.newattrs.h/2
warpshell.newattrs.x=winattrs.x+winattrs.w/2-warpshell.newattrs.w/2
warpshell.attrs.y=$offsets.top
warpshell.attrs.x=$offsets.left //update x position of original image relative to page
var winattrs={x:$window.scrollLeft(), y:$window.scrollTop(), w:$window.width(), h:$window.height()}
refreshoffsets:function($window, $target, warpshell){
cursorcss: 'url(magnify.cur), -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
imgopacity: 0.2 //opacify of original image when enlarged image overlays it
duration: 600, //default duration of animation, in millisec
magnifyby: 1.7, //default increase factor of enlarged image
* Feb 8th, 11 (v1.11): Fixed bug that caused script to not work in newever versions of jQuery (ie: v1.4.4)
* Nov 16th, 09 (v1.1): Adds ability to dynamically apply/reapply magnify effect to an image, plus magnify to a specific width in pixels.
* Visit http://www.dynamicdrive.com/ for full source code
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* This notice must stay intact for usage
/* jQuery Image Magnify script v1.1
Комментариев нет:
Отправить комментарий