Are your images all the same size and do you have the dimensions of the slideshow set to those dimensions? If so, just add this after the newfadeshow call:
Code:
;(function($, gal){
var set, id, num;
if((gal = window[gal]) && (num = fadeSlideShow.routines.getCookie("gallery-" + (id = (set = gal.setting).wrapperid)))){
$('head').append('<style type="text/css">#' + id + ', #' + id + ' .gallerylayer { background-image: url(' + set.imagearray[num][0] + ')!important;}</style>');
}
})(jQuery, 'mygallery');
where mygallery is the variable for that show, ex:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "#what", "", "<a style='color: #fff;' href='http://www.google.com/'>Nothing</a> 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://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:4000, cycles:0, wraparound:false},
persist: true, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: /apple|google/i.test(navigator.vendor)? "always" : "ondemand",
togglerid: ""
})
;(function($, gal){
var set, id, num;
if((gal = window[gal]) && (num = fadeSlideShow.routines.getCookie("gallery-" + (id = (set = gal.setting).wrapperid)))){
$('head').append('<style type="text/css">#' + id + ', #' + id + ' .gallerylayer { background-image: url(' + set.imagearray[num][0] + ')!important;}</style>');
}
})(jQuery, 'mygallery');
It will still fade in the very first time. That can be prevented as well if need be. But after the cookie is set, all subsequent loads will be without fade for the first image, whichever one it might be.
Bookmarks