Old 21-11-2005, 12:44   #1 (permalink)
Skidzy McFergus
Registered User
 
Join Date: Nov 2005
Posts: 57
function in table cell

Hello
I have a function which shows a sequence of images in a loop, the problem i have is that i have no control over where the images are shown on the page, i would like to show the images in a particular cell of a HTML table. Is there a way of doing this?

The function is below, it currently runs from onload.
Thanks
skidz

function startSlideShow(){

setTimeout("pic1()",1000);
}

function pic1(){
document.images.slidepix.src="costume.gif ";
setTimeout("pic2()",1000);
}

function pic2(){
document.images.slidepix.src="dressing.gif ";
setTimeout("pic3()",1000);
}

function pic3(){
document.images.slidepix.src="sculpting.gif ";
setTimeout("pic1()",1000);
}
  Reply With Quote
Old 25-11-2005, 13:51   #2 (permalink)
tobor
Senior Member
 
tobor's Avatar
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 162
why don't you make an array with the images in it and cycle through the images?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8