Yes!! Jeff, that's exactly what I meant--thank you!
I'm unfortunately doing something else wrong now....I've replaced the code I posted above (in the first post) with this:
if (document.images) {
var images = [];
for (var i = 0; i <= 13; i++) {
image[i] = new Image();
image[i].src = 'images/cover' + i + '.jpg';
}
}
Just as a bit of background, this is for an onMouseover event. An example HTML snippet would be:
<img src="images/cover.jpg" name="books" width="130" height="196" border="0" />
<a href="#" onMouseover="document.books.src=image1.src" onMouseout="document.books.src=image0.src">blah blah blah</a>
Where cover.jpg is image0.src. (Every time someone mouseovers the text link, the image named "books" changes.) It changed with my previous code, so it can't be too far off...right?