Page 27 of 39 FirstFirst ... 17252627282937 ... LastLast
Results 261 to 270 of 385
  1. #261
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    @chadd

    I am pretty limited on my abilty to diagnose the jquery, maybe you are better with it or someone else can look. If I were to guess its either happeing here:

    //binding click event on thumbnails
    var thumblist = new Array();
    thumblist = $('a').filter(function () {
    var regex = new RegExp("gallery[\\s]*:[\\s]*'" + $.trim(el.rel) + "'", "i");
    var rel = $(this).attr('rel');
    if (regex.test(rel)) {
    return this;
    }
    });

    or here:

    swapimage: function (link) {
    el.largeimageloading = false;
    el.largeimageloaded = false;
    var options = new Object();
    options = $.extend({}, eval("(" + $.trim($(link).attr('rel')) + ")"));
    if (options.smallimage && options.largeimage) {
    var smallimage = options.smallimage;
    var largeimage = options.largeimage;
    $(link).addClass('zoomThumbActive');
    $(el).attr('href', largeimage);
    img.attr('src', smallimage);
    lens.hide();
    stage.hide();
    obj.load();
    } else {
    alert('ERROR :: Missing parameter for largeimage or smallimage.');
    throw 'ERROR :: Missing parameter for largeimage or smallimage.';
    }
    return false;
    }

    it definatly seems to stretch to fit the size of the main image size which kinda makes sense i guess.

    other than that the only other thing i can suggest is to use a batch image editor and make all images the same dimensions by fitting to rectangle. I would always reccomend this anyway as this way your product info page stays the same no matter what images are displayed. but I appreciate other people have different preferences.

    sorry im not more help at this time.
    Phil Rogers
    A problem shared is a problem solved.

  2. #262
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    or could be this..

    this.setdimensions = function () {
    this.node.w = (parseInt((settings.zoomWidth) / el.scale.x) > smallimage.w ) ? smallimage.w : (parseInt(settings.zoomWidth / el.scale.x));
    this.node.h = (parseInt((settings.zoomHeight) / el.scale.y) > smallimage.h ) ? smallimage.h : (parseInt(settings.zoomHeight / el.scale.y));
    Phil Rogers
    A problem shared is a problem solved.

  3. #263
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    It looks like magiczoom uses much of the same code as jqzoom, but they've got a good implementation:

    http://96 .30 .40.167/index.php?main_page=product_info&cPath=1&products_id=1

    This is a different test with only magiczoom....

  4. #264
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by chadderuski View Post
    It looks like magiczoom uses much of the same code as jqzoom, but they've got a good implementation:

    http://96 .30 .40.167/index.php?main_page=product_info&cPath=1&products_id=1

    This is a different test with only magiczoom....
    very neat. would do my head in how it moves it all about though. if its similar see if you can see if you can see how they are making the main image change size..
    Phil Rogers
    A problem shared is a problem solved.

  5. #265
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by philip937 View Post
    very neat. would do my head in how it moves it all about though. if its similar see if you can see if you can see how they are making the main image change size..
    outside my skills. they've compressed and obfuscated the javascript... :9

  6. #266
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    just emailed the author of jqzoom.. see if they have any suggestions
    Phil Rogers
    A problem shared is a problem solved.

  7. #267
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    re: magiczoom resizing effect...

    this appears to be from http://script.aculo.us/

    magictools is most likely incorporating this in some way

  8. #268
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    just downloaded jqzoom source files with demos and changed one of the image files supplied to a different size. works fine, so there must be something conflicting here,possibly the zen image size being set, will do some more digging
    Phil Rogers
    A problem shared is a problem solved.

  9. #269
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    dont know if this makes a differnce, but the demos thumbnails in the html file are coded as:

    <li><a class="zoomThumbActive" href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small1.jpg',largeimage: './imgProd/triumph_big1.jpg'}"><img src='imgProd/thumbs/triumph_thumb1.jpg'></a></li>
    <li><a href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small2.jpg',largeimage: './imgProd/triumph_big2.jpg'}"><img src='imgProd/thumbs/triumph_thumb2.jpg'></a></li>
    <li><a href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small3.jpg',largeimage: './imgProd/triumph_big3.jpg'}"><img src='imgProd/thumbs/triumph_thumb3.jpg'></a></li>

    notice only the inital one has a class of class="zoomThumbActive"

    who ever originally put together this zen version has the html outputting this:
    <li><a class="bonzer" href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small1.jpg',largeimage: './imgProd/triumph_big1.jpg'}"><img src='imgProd/thumbs/triumph_thumb1.jpg'></a></li>
    <li><a class="bonzer" href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small2.jpg',largeimage: './imgProd/triumph_big2.jpg'}"><img src='imgProd/thumbs/triumph_thumb2.jpg'></a></li>
    <li><a class="bonzer" href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small3.jpg',largeimage: './imgProd/triumph_big3.jpg'}"><img src='imgProd/thumbs/triumph_thumb3.jpg'></a></li>

    notice how all have the class bonzer and not only the initial image with the class zoomThumbActive

    im sure this has nothing to do with the stretching problem but just noticing the differences..
    Phil Rogers
    A problem shared is a problem solved.

  10. #270
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    I have found the problem

    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="' . $products_image_large . '" class="bonzer_zoom" rel="product_info">' . zen_image(addslashes($products_image_medium), addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>'; ?>');
    //--></script>

    setting the size here MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT is what is causing it.

    I did a test on a product and hard coded the html source output of this for the page and removed the height and width and does as you expect.. however there is a flaw with what you are trying to do unless you use large images as unless you restrict the height and width of your small images you wont actually be zooming anything.

    so you have the choice of either using large images and changing the code to not restrict the width and height, or change all your small images to the same scaling.

    unless you can see a workaround to this?
    Phil Rogers
    A problem shared is a problem solved.

 

 
Page 27 of 39 FirstFirst ... 17252627282937 ... LastLast

Similar Threads

  1. v153 jQuery Scrolling Sideboxes [Support Thread]
    By lat9 in forum Addon Sideboxes
    Replies: 79
    Last Post: 15 Apr 2024, 10:20 PM
  2. v152 Down for Maintenance jQuery Countdown (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Nov 2015, 03:04 PM
  3. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  4. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  5. Is there an add-on combine the functions of AJAX_image_swapper and Jquery Zoom?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jul 2010, 01:57 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR