P
Paul W
Hi - using IE for testing purposes. My rendered HTML is shown below. Seems
simple enough but the browser goes to the server each time it needs to show
an image - even though I try to pre-cache them. I don't get any Javascript
errors.
Thanks,
Paul.
-------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>
blah blah </title>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<LINK href="Tennis.css" type="text/css" rel="stylesheet">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<script language="javascript">
<!--
//need to precache all images that might be used
if (document.images)
{
var image1=new Image
image1.src="images/bgball.bmp"
var image2=new Image;
image2.src="images/bgcross1-3.bmp"
}
function changeimage(el) { //simplified version
el.src="images/bgball.bmp"
}
......
simple enough but the browser goes to the server each time it needs to show
an image - even though I try to pre-cache them. I don't get any Javascript
errors.
Thanks,
Paul.
-------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>
blah blah </title>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<LINK href="Tennis.css" type="text/css" rel="stylesheet">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<script language="javascript">
<!--
//need to precache all images that might be used
if (document.images)
{
var image1=new Image
image1.src="images/bgball.bmp"
var image2=new Image;
image2.src="images/bgcross1-3.bmp"
}
function changeimage(el) { //simplified version
el.src="images/bgball.bmp"
}
......