Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Creating a DOM based Image Rotator
- From: harvey.ramer at designdelineations.com (Harvey A. Ramer)
- Subject: [Javascript] Creating a DOM based Image Rotator
- Date: Thu Aug 18 11:11:18 2005
I would like to convert this image rotator into a dom/XHTML compliant
script. Can anyone do this easily? It's extremely short.
Thanks in advance.
-----------------------------------------
rotateImages = new
Array("/images/rotate/1.jpg","/images/rotate/2.jpg","/images/rotate/3.jpg","
/images/rotate/4.jpg","/images/rotate/5.jpg","/images/rotate/6.jpg","/images
/rotate/7.jpg","/images/rotate/8.jpg");
thisImage = 0;
imageCt = rotateImages.length;
function rotate(){
if (document.rotateImg.complete){
thisImage++;
if (thisImage == imageCt){
thisImage=0;
}
document.rotateImg.src = rotateImages[thisImage];
setTimeout("rotate()", 6*1000)
}
}
-----------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050818/83b95138/attachment.html
- Follow-Ups:
- [Javascript] Creating a DOM based Image Rotator
- From: Flavio Gomes
- [Javascript] Creating a DOM based Image Rotator
- Prev by Date: [Javascript] reassign the script src attribute
- Next by Date: [Javascript] reassign the script src attribute
- Previous by thread: [Javascript] IE Control Buttons Hide
- Next by thread: [Javascript] Creating a DOM based Image Rotator
- Index(es):