Thanks for bringing back the script credit, any reason why you couldn't have left it as part of the external script tag? That's not critical though, the way you've done it is acceptable.
Anyways, here's a workaround, replace:
Code:
<script type="text/javascript">
jQuery(function($){
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [521, 353], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/indFade/oneFam.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/exterior.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
//["images/indFade/newLocation5.png"],
["images/indFade/oneBday.png", "http://www.gigglesnhugs.com/parties.php", "", ""],
["images/indFade/040-5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/gigglesToGo5.png", "http://www.gigglesnhugs.com/parties-to-go.php", "", ""],
["images/indFade/intSeaSerpent.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/spaghetti5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/intClimbing.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/dailyAct5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
//["images/indFade/dance5.png"],
["images/indFade/parfait5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/intFront.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/salad5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "fadeshow2toggler"
})
}); // end jquery ready
</script>
with (additions highlighted):
Code:
<script type="text/javascript">
jQuery(function($){
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [521, 353], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/indFade/oneFam.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/exterior.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
//["images/indFade/newLocation5.png"],
["images/indFade/oneBday.png", "http://www.gigglesnhugs.com/parties.php", "", ""],
["images/indFade/040-5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/gigglesToGo5.png", "http://www.gigglesnhugs.com/parties-to-go.php", "", ""],
["images/indFade/intSeaSerpent.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/spaghetti5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/intClimbing.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/dailyAct5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
//["images/indFade/dance5.png"],
["images/indFade/parfait5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/intFront.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""],
["images/indFade/salad5.png", "http://www.gigglesnhugs.com/gallery-centurycity.php", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1000, //transition duration (milliseconds)
descreveal: "ondemand",
onslide: function(layer, index){
this.ulink.href = layer.getElementsByTagName('a')[index].href;
},
oninit: function(){
var $sw = this.setting.$wrapperdiv, $uw = $sw.parents('#slideshowWrapper');
$uw.find('img').eq(0).wrap('<a></a>').css({borderWidth: 0}).add(this.setting.$togglerdiv)
.mouseenter(function(){$sw.trigger('mouseenter');})
.mouseleave(function(){$sw.trigger('mouseleave');})
.find('.next').attr('title', 'Next').end().find('.prev').attr('title', 'Previous');
this.ulink = $uw.find('a').get(0);
},
togglerid: "fadeshow2toggler"
})
}); // end jquery ready
</script>
You may or may not want the red code. It simply adds 'Next' and 'Previous' as titles for the next and previous buttons.
Bookmarks