Hello. This is my first post here. It looks like a nice enough forum!!
I have a sleight problem with preloading images. I create a new image object:
[COLOR=blue]var image1 = new Image();
Then I assign an image to that var:
[COLOR=blue]image1.src = theImage.jpg;
I then give a name to an <img> tag and place it into an anchor. Of course whilst testing on my local machine, the mouseover works as expected, nice and crisp. When I test online, it’s obvious that the image is not being assigned to the variable… I have tried placing the code in and out of the head tag, with the same results.
I’m using IE on XP pro. Thanks in advance for any advice.
I’m familiar with PHP, C, C++ and a little bit of ASM if anyone needs some help in those areas. Cheers, Nick.