Hi there,
Just trying to get hold of an image preload script, but all I can find is ones for using on rollovers.
I've got this so far:
...but not sure on what to put within the img src tags?
Also, is that script going to multi-browser compatible?
Thanks for any help given,
Steven.
Just trying to get hold of an image preload script, but all I can find is ones for using on rollovers.
I've got this so far:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language = "JavaScript">
function preloader()
{
heavyImage = new Image();
heavyImage.src = "heavyimagefile.jpg";
}
</script>
</head>
<body onLoad="javascript:preloader()">
<img src="" alt="Heavy Image File" width="200px" height="100px" />
</body>
</html>
...but not sure on what to put within the img src tags?
Also, is that script going to multi-browser compatible?
Thanks for any help given,
Steven.