Use the original code for the first slideshow, and try using the following for the second:
Code:
<script language="JavaScript1.2">
/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var variableslides=new Array()
//variableslides[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslides[0]=['ball.gif', '', '']
variableslides[1]=['spaceship.gif', 'http://www.space.com', 'Has aliens landed on earth? You decide.']
variableslides[2]=['cake.gif', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow
var slideswidth='130px' //set to width of LARGEST image in your slideshow
var slidesheight='120px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidesbgcolor='#F3F3F3'
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidesdelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslides.length;i++){
var cacheimages=new Image()
cacheimages.src=variableslides[i][0]
}
var currentslides=0
function rotateImages(){
contentscontainer='<center>'
if (variableslides[currentslides][1]!="")
contentscontainer+='<a href="'+variableslides[currentslides][1]+'">'
contentscontainer+='<img src="'+variableslides[currentslides][0]+'" border="0" vspace="3">'
if (variableslides[currentslides][1]!="")
contentscontainer+='</a>'
contentscontainer+='</center>'
if (variableslides[currentslides][2]!="")
contentscontainer+=variableslides[currentslides][2]
if (document.layers){
crossrotateobjs.document.write(contentscontainer)
crossrotateobjs.document.close()
}
else if (ie||dom)
crossrotateobjs.innerHTML=contentscontainer
if (currentslides==variableslide.length-1) currentslides=0
else currentslides++
setTimeout("rotateIimages()",slidesdelay)
}
if (ie||dom)
document.write('<div id="slidesdom" style="width:'+slideswidth+';height:'+slidesheight+'; background-color:'+slidesbgcolor+'"></div>')
function startSlider(){
crossrotateobjs=dom? document.getElementById("slidesdom") : ie? document.all.slidesdom : document.slidensmains.document.slidenssubs
if (document.layers)
document.slidensmains.visibility="show"
rotateImages()
}
if (ie||dom)
startSlider()
else if (document.layers)
window.onload=startSlider
</script>
<ilayer id="slidensmains" width=&{slideswidth}; height=&{slidesheight}; bgColor=&{slidesbgcolor}; visibility=hide><layer id="slidenssubs" width=&{slideswidth}; left=0 top=0></layer></ilayer>
<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
Not tested, but should work. Hope this helps.
Note: This is the exact same script, just with some changed variable and function names.
Bookmarks