For your on page init follow this example's highlighted parts (don't miss the added comma, red after the togglerid):
Code:
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //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:5, wraparound:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "fadeshow2toggler",
oninit: function(){
var tObj = this.setting.$togglerdiv.remove();
this.setting.$wrapperdiv.prepend(tObj).bind('mouseover', function(){
tObj.fadeIn();
}).bind('mouseout', function(e){
if(jQuery.inArray(e.relatedTarget, jQuery(this).find('*')) < 0){
tObj.fadeOut();
}
});
this.paginateinit(jQuery);
}
})
Add these styles to the head of the page:
Code:
<style type="text/css">
#fadeshow2toggler {
display: none;
position: absolute;
z-index: 1002;
}
#fadeshow2toggler .prev {
float: left;
margin-left: 3px;
}
#fadeshow2toggler .next {
float: right;
margin-right: 3px;
}
</style>
where fadeshow2toggler is the togglerid for your show. Then use something like so for the togglerid div:
Code:
<div id="fadeshow2toggler" style="width:250px; margin-top:10px">
<a href="#" class="prev"><img src="http://i31.tinypic.com/302rn5v.png" style="border-width:0" /></a>
<a href="#" class="next"><img src="http://i30.tinypic.com/lzkux.png" style="border-width:0" /></a>
</div>
making sure that the width is the same as the show's width.
Bookmarks