I'm not real clear on what you are going for, but instead of following the instructions in that thread to the letter, do the other stuff recommended there, but change this line in in the script:
Code:
setting.$gallerylayers.eq(setting.fglayer).css({zIndex:999}) //foreground layer becomes background
to:
Code:
setting.$gallerylayers.eq(setting.fglayer).css({zIndex: 999}).stop().animate({opacity: 0}, setting.fadeduration); //foreground layer becomes background
I also setup another approach to what I think you are after that requires no changes to the styles or script. I can't find it at the moment, but we put an absolutely positioned div over the slide show and put an image in that. Using the undocumented onslide property of the show, made this added division go away after the first slide had fully faded in:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [470, 502], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://stickmanlabs.com/images/kevin_vegas.jpg"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "",
onslide: function(){
document.getElementById('coverDiv').style.display = 'none';
this.setting.onslide = function(){};
}
})
Don't miss the added comma after the togglerid: "" property. The markup could then be something like:
Code:
<div style="position:relative;width:470px;height:502px"> <-- Same Dimensions as the show -->
<div id="fadeshow1"></div>
<div id="coverDiv" style="position:absolute;z-index:1002"><img src="myImage.jpg" alt=""></div>
</div>
You may have to add top and left style properties to the coverDiv to get the image to appear just where you want it to. Some other minor tweaks may be required.
Bookmarks