I don't see any graceful way around this. Apparently the dimensions used by the lightbox script are too interrelated for such a simple fix.
What I would recommend, unless a better way can be found, (first put the script back the way it was) is to setup a conditional comment to initiate a unique variable in IE:
Code:
<!--[if IE]>
<script type="text/javascript">
var blah='bleh';
</script>
<![endif]-->
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/sc . . .
Then where the lightbox script goes to get the height for the overlay:
Code:
start: function(imageLink) {
hideSelectBoxes();
hideFlash();
// stretch overlay to fill page and fade in
var arrayPageSize = getPageSize();
if(typeof blah=='undefined')
Element.setHeight('overlay', arrayPageSize[1]);
else
overlay.style.height=document.documentElement.scrollHeight+'px';
new Effect.Appea . . .
and:
Code:
updateDetails: function() {
Element.show('caption');
Element.setInnerHTML( 'caption', imageArray[activeImage][1]);
// if image is part of set display 'Image x of x'
if(imageArray.length > 1){
Element.show('numberDisplay');
Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length);
}
new Effect.Parallel(
[ new Effect.SlideDown( 'imageDataContainer', { sync: true, duration: resizeDuration, from: 0.0, to: 1.0 }),
new Effect.Appear('imageDataContainer', { sync: true, duration: resizeDuration }) ],
{ duration: resizeDuration, afterFinish: function() {
// update overlay size and update nav
var arrayPageSize = getPageSize();
if(typeof blah=='undefined')
Element.setHeight('overlay', arrayPageSize[1]);
else
overlay.style.height=document.documentElement.scrollHeight+'px';
myLightbox.updateNav();
}
}
);
},
Bookmarks