Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: jQuery Image Magnify v1.11

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jQuery Image Magnify v1.11

    Hello members,

    I have in cooperated the jQuery Image Magnify v1.11 into a website I'm creating and it's working well.

    The default of this script is such that when the image is not yet enlarged and one hovers the mouse over the image the cursor turns into a magnifier which is cool.

    I just want to know how to make the cursor turn into a de-magnifier icon when the photo is enlarged instead of the default cursor which is an arrow.

    Counting on anyone for how to go about this.

    Thank you.

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

    Default

    Sure, try the below modified .js file. You'll need to edit this line to set the .cur file used as the ummagnify image:

    Code:
    	cursoroutcss: 'url(magnifyout.cur), -moz-zoom-out',
    I can't recall which program I used to create the initial magnify.cur icon, but just do a search for icon editor online to find a suitable one if needed.
    DD Admin

  3. #3
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I'm fairly new to DD, but amazed by the wonderful scripts and support in the forums. I also would like to modify jQuery Image Magnify v1.11 to include the magnifyout cursor, but I'm having difficulty inserting the code provided. Does anyone have an example page or .js file where the two different magnify glasses are functioning? Any help or suggestions would be greatly appreciated.

  4. #4
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Help with attachment needed

    This thread seems to list an 'attachment' file, but it comes up empty (There are no attachments to display).
    Does anyone have this particular file... or would ddadmin please post it again?

  5. #5
    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

    It must have been like this (right click and 'Save As'):

    jquery.magnifier.js
    - John
    ________________________

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

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

    427 (12-12-2013)

  7. #6
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    It must have been like this (right click and 'Save As'):

    jquery.magnifier.js
    OUTSTANDING, John... that workz brilliantly!

    BTW- I did alter one section to function better in IE (as noted in previous posts).
    Instead of using:
    Code:
    	cursorcss: 'url(magnify.cur), -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
    	cursoroutcss: 'url(magnifyout.cur), -moz-zoom-out',
    	zIndexcounter: 100,
    I opted for:
    Code:
    	cursorcss: 'url(magnify.cur), pointer', //Value for CSS's 'cursor' attribute, added to original image
    	cursoroutcss: 'url(magnifyout.cur), pointer',
    	zIndexcounter: 100,
    If I'm changing this in error, please educate me.

    Many thanx,
    427

  8. #7
    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

    Quote Originally Posted by 427 View Post
    BTW- I did alter one section to function better in IE (as noted in previous posts).
    Absolutely. That's the part you're supposed to edit. If you had asked me, I would have recommended it be edited that way.
    - John
    ________________________

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

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

    427 (12-12-2013)

  10. #8
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    No need to apologize... you have been a fantastic resource (especially your replies to the IE issue in other threads).
    But this leads to one question (and I honestly mean no ill intent):
    If the IE fix is a recommended change, would it make sense to update the js file on the main website?

  11. #9
    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

    It would but I'm not the site owner, nor do I have editorial control over it.
    - John
    ________________________

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

  12. #10
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Ahhh... understood. Once again, I appreciated all your help today.

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
  •