For the first questions - colors used in the description, editing the script would be tedious. These can be accomplished via overriding styles. Put this in the head of your page:
Code:
<style type="text/css">
.descpanelbg {
background-color: #f00000!important;
}
.descpanelfg {
color: #000000!important;
}
</style>
This will give you a red background and black foreground color. But remember, the background is partially transparent, so it will no be a bright red, more tending toward pink. You may adjust these colors as desired. Use of the !important keyword is required to override the scripted colors for these elements.
As for having an image be there to start things off, that's a little tricky. No image can appear until it has been downloaded by the browser. It would be easier and better to just use a different color background, one that matches the color scheme of your page, rather than black. To do so add this highlighted rule to the above:
Code:
<style type="text/css">
.descpanelbg {
background-color: #f00000!important;
}
.descpanelfg {
color: #000000!important;
}
#fadeshow1, .gallerylayer {
background-color: pink!important;
}
</style>
where fadeshow1 is the wrapperid for the slideshow. I used pink as an example, you may use any valid color name or valid hex color value.
An image may also be placed there (do not use the !important keyword for it):
Code:
#fadeshow1, .gallerylayer {
background-color: pink!important;
background-image: url(myfirstimage.jpg);
}
where myfirstimage.jpg can be the path and the filename to the first image in the show. But once things get rolling, you probably won't want it there any longer because it may bleed through. And, as I say - it won't necessarily appear right away, the browser still has to download it. This won't be a problem once it's cached, but all of your first time visitors will not have that luxury. So be sure to keep the background color too for those folks.
To get rid of it once the show starts rolling, add this to your fadeSlideShow call:
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", "", "", "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://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(){
this.setting.$gallerylayers.css({backgroundImage: 'none'});
this.setting.$wrapperdiv.css({backgroundImage: 'none'});
this.setting.onslide = function(){};
}
})
Don't miss the added comma (red) after the togglerid value.
Bookmarks