View Single Post
  #3 (permalink)  
Old January 7th, 2005, 06:49 AM
Adam H-W Adam H-W is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , .
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W

thanks Joe

I've re-written my code as such:

<script language="JavaScript" type="text/javascript">
function preloadImages(ImageSources)
  for (var i = 0; i < ImageSources.length; i++)
    var oImage = new Image();
    oImage.src = ImageSources[i];

<body onLoad="preloadImages(['image_bin/about_over.gif', 'image_bin/therapies_over.gif', 'image_bin/'therapists_over.gif', 'image_bin/find_over.gif' ,'image_bin/email_over.gif'])">

and now I get the error message: Object Expected

not sure why?



Reply With Quote