now for the same stuff except more easily scalable and with no respect for older browser :
<html>
<head>
<script>
var delai = 50; // milliseconds between each change.
var currImg = 0; // tells us wich image we are on
function imageEffect()
{
if (currImg > 0)
{
// set last image back to original src.
var img = document.images[currImg-1]
var other = img.getAttribute("otherSrc"

img.setAttribute("otherSrc", img.src)
img.src = other
}
if (currImg < document.images.length)// stops us from going on forever
{
// sets image to new src
var img = document.images[currImg]
var other = img.getAttribute("otherSrc"

img.setAttribute("otherSrc", img.src)
img.src = other
// tells us to do the same but with the next one in line
currImg++
// repeat this function for the next image
setTimeout("imageEffect()", delai)
}
}
</script>
</head>
<body onload="imageEffect()">
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
<img src=purple.png otherSrc=teal.png height=10 width=10>
</body>
</html>
Gary "
Haran