Just say so and I'll call the people with the huge black van to come
for you.
Yes. Shoot the newbie, great idea. If you continue to drive away people
who come here asking for advice, don't be surprised when they turn to a
subpar solution like dynamicdrive or JQuery. He's probably not reading
this group anymore (and after those replies, I don't blame him), but for
the record, here's a possible solution to his problem (untested):
<img src="foo.jpg" id="myImg" ....>
<script type="text/javascript">
var imgSrcList = [
"foo.jpg",
"bar.jpg",
"baz.jpg"
],
i = 0,
delay = 3000,
img;
function nextImg () {
img.src = imgSrcList[++i % 3];
window.setTimeout(nextImg, delay);
}
if ("getElementById" in document
&& "setTimeout" in window
&& (img = document.getElementById("myImg")))
{
window.setTimeout(nextImg, delay);
}
</script>
That took all of 2 minutes. I don't think the OP was unreasonable in
hoping for at least one helpful reply.
- Conrad