Results 1 to 2 of 2

Thread: Image Magnify v1.1 close button

  1. #1
    Join Date
    May 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Image Magnify v1.1 close button

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

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/imagemagnify.htm

    3) Describe problem:
    I'm looking to add a close button to the pop up magnify as opposed to close it while one clicks on the image magnified itself.
    I've seen post http://www.dynamicdrive.com/forums/s...ad.php?t=56261 but the close image doesn't close the magnify.
    Any help would be great. Thanks in advance.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use this updated version:

    Attachment 3957

    Configuration for the button is at the beginning:

    Code:
    /* jQuery Image Magnify script v1.1
    * This notice must stay intact for usage 
    * Author: Dynamic Drive at http://www.dynamicdrive.com/
    * Visit http://www.dynamicdrive.com/ for full source code
    
    * Nov 16th, 09 (v1.1): Adds ability to dynamically apply/reapply magnify effect to an image, plus magnify to a specific width in pixels.
    * Feb 8th, 11 (v1.11): Fixed bug that caused script to not work in newever versions of jQuery (ie: v1.4.4)
    * June 27th, 11 : unofficial update for optional close button (http://www.dynamicdrive.com/forums/showthread.php?p=255483#post255483)
    */
    
    jQuery.noConflict()
    
    jQuery.imageMagnify={
    	dsettings: {
    		magnifyby: 3, //default increase factor of enlarged image
    		duration: 500, //default duration of animation, in millisec
    		imgopacity: 0.2 //opacify of original image when enlarged image overlays it
     	},
    	cursorcss: 'url(magnify.cur), -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
    	closebutton: 'zoomout.gif', // Image for close button, set to false (unquoted) for no close button
    	closebuttonprops: {right: 30, bottom: 30, title: 'Close'}, // offset from right of larger image, offset from bottom of larger image, button title
    	zIndexcounter: 100,
    
    	refreshoffsets:function($window, $target, warpshell){
    		var $offsets=$tar . . .
    Last edited by jscheuer1; 06-28-2011 at 03:34 AM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    eclipsetalk (06-28-2011)

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
  •