OK, here's the 'ultimate' solution for that particular page -
Step 1 - Revert to the original version of the slideshow script.
Step 2 - Put this in the stylesheet for the page. The first part is for fadeshow1, the first slideshow because we reverted to the original script with it's black background. The second part is only needed in IE 7, otherwise it messes up on the next step:
Code:
#fadeshow1, #fadeshow1 .gallerylayer {
background: white !important;
}
#fadeshow2 {
width: 177px;
height: 243px;
}
Step 3 - Before the newFadeShow call for fadeshow2 insert the highlighted as shown:
Code:
descreveal: "ondemand",
togglerid: ""
})
jQuery(function($){ // customized for ilovelakeoconee.com fadeshow2
var wrapperid = 'fadeshow2', // set wrapper id the same as the slideshow
backcolor = 'white', // set background color
container = $('#widecontainer'), // slideshow's background parent
bgwidth = 1500, bgheight = 290, // set variables for background image's dimensions
bgimsrc = 'http://www.ilovelakeoconee.com/testsite/images/waterfooter.png'; // set container's background image
var $show = $('#' + wrapperid), off, cmid, ch, newstyle, thestyle, // get slideshow wrapper div, reserve some variables
topcoord = container.innerHeight() - $show.position().top - bgheight; // since it won't change, set it now
$show.bind('repositionEvent', function(){ // function to write and install overriding styles for slideshow baground
off = $show.position(); cmid = container.innerWidth() / 2;
newstyle = '<style title="' + wrapperid + 'posbg" type="text/css">#' + wrapperid + ', #' + wrapperid + ' .gallerylayer {' +
'background: ' + backcolor + ' url(' + bgimsrc + ') ' + (cmid - off.left - bgwidth / 2) + 'px ' + topcoord + 'px no-repeat !important;}<\/style>';
if((thestyle = $('style[title=' + wrapperid + 'posbg]')).size()){
thestyle.replaceWith(newstyle);
} else {
$('head').append(newstyle);
}
});
$show.trigger('repositionEvent'); // set the show's background
$(window).resize(function(){$show.trigger('repositionEvent');}); // do it again should the window be resized
});
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [177, 243], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/floa . . .
That's it! There's nothing for you to configure.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks