Sure, just put the short one (the one that used to be on the page), at the end of the main script. Just to be on the safe side add a space after the main script and a semi colon, ex:
Code:
. . . ie:function(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
},
setCookie:function(name, value){
document.cookie = name+"=" + value + ";path=/"
}
}
;
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [999, 265], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["/images/slideshow/slideshow_1.jpg"],
["/images/slideshow/slideshow_2.jpg"],
["/images/slideshow/slideshow_3.jpg"],
["/images/slideshow/slideshow_4.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
Bookmarks