[thelist] rotating images

ArgonLabs argonlabs at bigplanet.com
Mon Nov 19 13:05:22 CST 2001


is it possible to stop this rotating cycle with an onClick action?

adImages = new
Array("../art/bat_frm_1.gif","../art/bat_frm_2.gif","../art/bat_frm_3.gif","../art/bat_frm_4.gif","../art/bat_frm_3.gif","../art/bat_frm_2.gif","../art/bat_frm_1.gif")

 thisAd = 0
 imgCt = adImages.length

 function rotate() {
  if (document.images) {
   thisAd++
   if (thisAd == imgCt) {
    thisAd = 0
   }

   document.frm.src=adImages[thisAd]
   setTimeout("rotate()", 1 * 200)
  }
 }

W





More information about the thelist mailing list