The demo page already has two shows. It uses (unlike the demo code offered on the demo page, which has two similar image arrays) two different image arrays:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["../dynamicindex4/bs00825a.gif", "http://www.wired.com", ""]
fadeimages2[1]=["../dynamicindex4/bs00847a.gif", "http://www.theregister.com", ""]
fadeimages2[2]=["../dynamicindex4/hh01478a.gif", "http://www.news.com", "_new"]
And (also unlike the demo code that has two calls in the same script block in the body) it uses two separate in body script calls:
Code:
<table border="0" width="450" cellspacing="0" cellpadding="0">
<tr>
<td><script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, pause, optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 1, 3000, 1, "R")
</script></td>
<td><script type="text/javascript">
new fadeshow(fadeimages2, 110, 110, 0, 4000, 0)
</script></td>
</tr>
</table>
These two in body calls can go wherever you need them in your source code. The dimensions are the 2nd (width) and 3rd (height) parameters in each call.
Bookmarks