G
GabrielESandoval
i currently use the code below to create a slideshow of images. i
edited it so that its not as long. i currently have over 20 images
i want to change it so that the images dont appear in the same order
each time. what would i have to change to make the cycle random???
thanks in advance for the help.
gabriel
-- heres the code --
<script language="JavaScript1.1">
<!--
//specify interval between slide (in mili seconds)
var slidespeed=100
//specify images
var slideimages=new Array("images/slideshow/comp_logo.gif",
"images/slideshow/logo2.gif", "
//specify corresponding links
var slidelinks=new Array("http://www.company.com",
"http://www.mycompany.com/
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder=new Image()
imageholder.src=slideimages
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
function openwindow()
{
window.open("http://cmis.tamu.edu/web/video.asp","my_new_window","toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, copyhistory=no, width=700, height=600")
}
//-->
</script>
edited it so that its not as long. i currently have over 20 images
i want to change it so that the images dont appear in the same order
each time. what would i have to change to make the cycle random???
thanks in advance for the help.
gabriel
-- heres the code --
<script language="JavaScript1.1">
<!--
//specify interval between slide (in mili seconds)
var slidespeed=100
//specify images
var slideimages=new Array("images/slideshow/comp_logo.gif",
"images/slideshow/logo2.gif", "
//specify corresponding links
var slidelinks=new Array("http://www.company.com",
"http://www.mycompany.com/
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder=new Image()
imageholder.src=slideimages
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
function openwindow()
{
window.open("http://cmis.tamu.edu/web/video.asp","my_new_window","toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, copyhistory=no, width=700, height=600")
}
//-->
</script>