Get rid of this:
Code:
<script type="text/javascript" src="jquery.min.js"></script>
You only need one copy of jQuery for the page and 1.4.2 is better. And the slide show will run just fine on it.
Also, get rid of:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [543, 500], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["randoms/pic-2.png", "", "", ""],
["randoms/pic-1.png", "", "", ""],
["randoms/pic-3.png", "", "", ""],
["randoms/pic-5.jpg", "", "", ""],
["randoms/pic-4.png", "", "", ""],
["randoms/pic-6.png", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 600, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
We'll use its code elsewhere. Replace this:
Code:
<script type="text/javascript">
$(function(){
$('#container').hide();
$('#apDiv1').hide();
$('#apDiv1').fadeIn(2800)
});
$(function(){
setTimeout(function() {
$("#apDiv1").fadeOut(2800, function() {
$("#container").fadeIn();
});
}, 3000);
});
</script>
with this:
Code:
<script type="text/javascript">
jQuery(function($){
$('#container').hide();
$('#apDiv1').hide();
$('#apDiv1').fadeIn(2800)
setTimeout(function() {
$("#apDiv1").fadeOut(2800, function() {
$("#container").fadeIn();
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [543, 500], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["randoms/pic-1.png", "", "", ""],
["randoms/pic-2.png", "", "", ""],
["randoms/pic-3.png", "", "", ""],
["randoms/pic-5.jpg", "", "", ""],
["randoms/pic-4.png", "", "", ""],
["randoms/pic-6.png", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 600, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
});
});
}, 3000);
});
</script>
That's it. I even restored what I imagine to be the desired order of the slides, starting with 1 now instead of 2. Feel free to change that if you like.
Bookmarks