Murray and Thomas,
I was interested by the exchange I and didn't regard it as a contest. I
also wanted to know when caching occurs and I think reading (and
re-reading) this thread will help me. I am curious as to why my background
image is now cached when it wasn't before. All I did was change it to an
absolute reference
http://tandcl.homemail.com.au/images/04-08-24-1-bird-bath.jpg rather than
a relative reference images/04-08-24-1-bird-bath.jpg. And yet I am sure
that somewhere in this thread. it was stated that the image would be
cached provided it was always referred to in the same way. Before I made
it absolute, it was referred to the way, in fact it was only referred to
once - in style.css as a background.
i.e.
body, frameset {background:
url(
http://tandcl.homemail.com.au/images/04-08-24-1-bird-bath.jpg) ;}
Still, if it ain't broke , .....
Murray, I will try to get the first page down to 45-50K. My picture is now
49K, after reducing JPEG quality in IrfanView. I don't think the other
images and text take much more, but I will check it.
I would appreciate it if someone could tell me whether my preload code is
correct. Then if I decide to use it, I will know that it works.
In index.html
<frameset rows ="65,*" onload="PreLoad()">
In external.js
function PreLoad()
{
var images = new Array();
for (i=1;i<=12;i++)
{ var "myimage" + i = images[i-1] = new Image();}
myimage1.src =
"
http://tandcl.homemail.com.au/images/04-08-24-1-bird-bath.jpg";
myimage2.src = "
http://tandcl.homemail.com.au/images/parchmnt.gif" ;
myimage3.src =
"
http://tandcl.homemail.com.au/images/thumbnails/trevor.jpg" ;
myimage4.src =
"
http://tandcl.homemail.com.au/images/thumbnails/carole.jpg" ;
........................
}
--
Many Thanks,
Trevor L.
P.S. This forum is a great resource
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html