Results 1 to 2 of 2

Thread: jQuery Image Magnify v1.1 and jquery 1.4

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jQuery Image Magnify v1.1 and jquery 1.4

    1) Script Title: :: jQuery Image Magnify v1.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...agemagnify.htm
    3) Describe problem: The demo uses jquery 1.3.2.
    When I try to use version 1.4.3 of jquery (http://ajax.googleapis.com/ajax/libs.../jquery.min.js) the image magnifies only the first time it is clicked. It still works with version 1.4.2.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Interesting, it looks like v1.4.3 animating a hidden image's dimensions by itself no longer reveals the image unless it's first made visible. Inside the .js file of the script, try finding the below line, and add to it the part in red:
    Code:
    			$clone.stop().show().css({zIndex:++jQuery.imageMagnify.zIndexcounter, left:imageinfo.attrs.x, top:imageinfo.attrs.y, width:imageinfo.attrs.w, height:imageinfo.attrs.h, opacity:0, visibility:'visible'})
    			.animate({opacity:1, left:imageinfo.newattrs.x, top:imageinfo.newattrs.y, width:imageinfo.newattrs.w, height:imageinfo.newattrs.h}, setting.duration,
    			function(){ //callback function after warping is complete
    				//none added		
    			}) //end animate
    		}) //end click
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •