Index: lams_tool_images/web/includes/javascript/jquery.galleria.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/web/includes/javascript/Attic/jquery.galleria.js,v diff -u -r1.1 -r1.2 --- lams_tool_images/web/includes/javascript/jquery.galleria.js 2 Nov 2008 01:15:12 -0000 1.1 +++ lams_tool_images/web/includes/javascript/jquery.galleria.js 10 Dec 2008 14:53:03 -0000 1.2 @@ -147,6 +147,7 @@ _a.find('img').addClass('thumb noscale').css('display','none') : _img.clone(true).addClass('thumb').css('display','none'); + if (_a) { _a.replaceWith(_thumb); } if (!_thumb.hasClass('noscale')) { // scaled tumbnails! @@ -170,6 +171,11 @@ // add the rel attribute _thumb.attr('rel',_src); + if(jQuery.browser.msie) { + _thumb.attr('imageWidth',_a.attr('width')); + _thumb.attr('imageHeight',_a.attr('height')); + } + // add the title attribute _thumb.attr('title',_title); @@ -300,21 +306,25 @@ // define a new image var _img = $(new Image()).attr('src',_src).addClass('replaced'); + + if(jQuery.browser.msie) { + _img.attr('width',_thumb.attr('imageWidth')); + _img.attr('height',_thumb.attr('imageHeight')); + } // empty the wrapper and insert the new image _wrapper.empty().append(_img); // insert the caption _wrapper.siblings('.caption').text(_thumb.attr('title')); - + // fire the onImage function to customize the loaded image's features $.galleria.onImage(_img,_wrapper.siblings('.caption'),_thumb); // add clickable image helper if($.galleria.clickNext) { _img.css('cursor','pointer').click(function() { $.galleria.next(); }) } - } else { // clean up the container if none are active