Discussion » Javascript:

This is a read-only copy. The forum ran on iamcal.com from 2000 until its database was lost in 2016, and this topic was rebuilt from copies saved by the Internet Archive's Wayback Machine. Some replies may be missing.
Posted by Jeremy, 06:06, 9th July 2001:
 
Cal, you're a smart guy.How do I do what I'm trying to do here w/ JS.image_a=new Image;image_a.src="/foo.jpg";Then, I want to say:<img src="/image_a.src"> --- I know this is wrong, but you see what I'm getting at. Do you know how to do it?
Posted by cal, 06:57, 9th July 2001:
 
How to preload images via javascriptvar a = new Image();a.src = "path/to/my/image.gif";---<img name="bob" src="/path/to/another/image.gif">---document["bob"].src = a.src;
Posted by Jeremy, 05:56, 10th July 2001:
 
Cal, check out something I made here:Link HereWhy do the images roll over so slowly?
Posted by cal, 07:06, 10th July 2001:
 
it doesn't seem to be preloading properly. i'll take a proper look later
Posted by Jeremy, 16:22, 11th July 2001:
 
If anyone knows what I'm doing wrong.......