Tech Support Guy banner
Status
Not open for further replies.
1 - 4 of 4 Posts

· Banned
Joined
·
679 Posts
Discussion Starter · #1 ·
Hi, I've been using the following script for preloading images ~

< !--
Image1= new Image(width,height)
Image1.src = "image1.jpg"
[etc.]
// -->

Which worked for ages but now doesn't. It's being used on this site ~

http://www.toucan.clara.co.uk/index.html

I use the same script on another site and it works fine. What am I missing?
 

· Registered
Joined
·
213 Posts
Are both domains on the same server? Server config could be the prob. If one server has it's default scripting language to vb script and the other JavaScript it could explain it.

Try declaring the scripting language:

&lt;script language = "javascript"&gt;

And don't forget to close the script tag

&lt;/script&gt;
 

· Banned
Joined
·
679 Posts
Discussion Starter · #3 ·
Ok, I've sussed the problem. Nothing to do with javascript. I'd previously renamed the rollover images and forgot I'd done it. Duh!

Moral ~ always check the obvious! :rolleyes:
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top