Rotating Randomizer

wxdqz

New Member
Hello! I need some help please, I have a slideshow script that displays 1 pic, I need to be able to have a bank of 4 side by side, any ideas? (all 4 need to be from a diff group of photos).

<script language="JavaScript1.2">


var number_of_slideshows=1
var interval=3000
var linked=1
for (i=0; i <number_of_slideshows; i++)
slideshows=new Array()

slideshows[0][0]='http://members.localnet.com/~blulady/pic/495-1.jpg'
slideshows[0][1]='http://members.localnet.com/~blulady/pic/496-1.jpg'
slideshows[0][2]='http://members.localnet.com/~blulady/pic/497-1.jpg'
slideshows[0][3]='http://members.localnet.com/~blulady/pic/498-1.jpg'
slideshows[0][4]='http://members.localnet.com/~blulady/pic/499-1.jpg'
slideshows[0][5]='http://members.localnet.com/~blulady/pic/500-1.jpg'
slideshows[0][6]='http://members.localnet.com/~blulady/pic/501-1.jpg'
slideshows[0][7]='http://members.localnet.com/~blulady/pic/502-1.jpg'
slideshows[0][8]='http://members.localnet.com/~blulady/pic/503-1.jpg'

var slidelinks=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)
slidelinks=new Array()

slidelinks[0][0]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2307453676'
slidelinks[0][1]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2307453874'
slidelinks[0][2]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2307454209'
slidelinks[0][3]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2307454464'
slidelinks[0][4]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2158862997'
slidelinks[0][5]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2158863935'
slidelinks[0][6]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2158864747'
slidelinks[0][7]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2810513486'
slidelinks[0][8]='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2810514155'

function clickredir(){
window.location=slidelinks[maininc][subinc]
}

var maininc=0
var subinc=0

if (linked)
document.write('<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:clickredir()"><img src=http://www.webdeveloper.com/forum/archive/index.php/"'+slideshows[0][0]+'" name="multislide" border=0></a>')

else
document.write('<img src=http://www.webdeveloper.com/forum/archive/index.php/"'+slideshows[0][0]+'" name="multislide">')

function slideit(){
subinc= (subinc<slideshows[maininc].length-1)? subinc+1: 0
document.images.multislide.src=slideshows[maininc][subinc]
}

function setslide(which){
clearInterval(runit)
maininc=which
subinc=0
runit=setInterval("slideit()",interval)
}

runit=setInterval("slideit()",interval)

</script>
 
Back
Top