Thanks Rob,
URL
http://tandcl.homemail.com.au/
I have tried washing out my background image and reinstated it on the
website. The file is now 162KB. Is this small enough?
It still seems to take a while to load.
Also, every time I switch to another page on the same site, all files appear
to download again (as shown on the IE status bar).
I have inserted javascript into the code for each html that uses images (at
least I think I have found all.)
It is code such as this (e.g. in
http://tandcl.homemail.com.au/index_top.html)
<head>
......
<script type="text/javascript">
if (document.images)
{a = new Image()
a.src = "images/04-08-24 1 Bird bath.jpg"
b = new Image()
b.src = "images/parchmnt.gif"
c = new Image()
c.src = "images/trevor_small.jpg"
d = new Image()
d.src = "images/carole_small.jpg"
}
</script>
......
</head>
Should this not download the image files?
If so, why does the download repeat every time?
Doesn't the system know whether the files are cached?
Should I only insert this code once (in the Home Page)?
Also, if I can get this sorted out so that I only download once, can the
code be made simpler?
e.g. can a,b,c,... be made an image array if such an animal exists?
Along the lines
Cached_imgs = new Image Array()
Cached_imgs[0].src = "images/04-08-24 1 Bird bath.jpg"
Cached_imgs[1].src = "images/parchmnt.gif"
....
OR
Cached_imgs = new Image Array("images/04-08-24 1 Bird bath.jpg" ,
"images/parchmnt.gif" , .....)
--
Many Thanks,
Trevor L.
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html