Problem one, set persist: true:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [540, 411], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://Adirondackvic.org/Images/Adirondack-Nature-Walk-2-August-2013-1.jpg", "", "", 'Adirondack Wildflowers: <a href="Pitcher Plant -- Sarracenia purpurea.htm" style="color: #FFF;">Pitcher Plant</a> on the <a href="BorealLife.html" style="color: #FFF;">Boreal Life Trail</a> (2 August 2013)'],
["http://Adirond . . .
. . . dack-Nature-Walk-2-August-2013-8.jpg", "", "", 'Adirondack Wetlands: <a href="Labrador Tea -- Rhododendron groenlandicum.htm" style="color: #FFF;">Labrador Tea </a> on <a href="Adirondack-Wetlands.html#bog" style="color: #FFF;">Barnum Bog</a> (2 August 2013)']//<--no trailing comma after very last image element!
],
titlesAndAlts: [
{title: "Adirondack Wildflowers: Pitcher Plant on Barnum Bog (2 August 2013)", alt: "Adirondack Wildflowers: Pitcher Plant on Barnum Bog (2 Augu . . .
. . . r Tea on Barnum Bog at the Paul Smiths VIC (2 August 2013)", alt: "Adirondack Wetlands: Labrador Tea on Barnum Bog at the Paul Smiths VIC (2 August 2013)"},
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: true, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "always",
togglerid: "fadeshow2toggler",
onslide: function(c, i){
var im = c.getElementsByTagName('img')[i], tas = this.setting.titlesAndAlts;
im.title = tas[i].title;
im.alt = tas[i].alt;
}
})
Problem two. First make a backup of the working page, just in case. There are various ways, but since you seem to imply that the page did validate before, with that DOCTYPE the easiest would be to make that code external. To do so, simply cut (as in cut an paste) the var mygallery=new fadeSlideShow( . . . code that is between the:
HTML Code:
<script type="text/javascript">
and:
tags and using a text only editor like NotePad, paste the code you just cut and save it to a file, call it - say fadeslides.js, and put that file in the same folder as your page. Then make that the src attribute of the remaining now empty script tags. So now on the page in the head at the end of the head there where all of that was, make it (change highlighted):
Code:
. . . 2toggler .noscript {
display: inline;
}
</style>
</noscript>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript" src="fadeslises.js"></script>
</head>
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks