HTML and CSS Reference
In-Depth Information
(see page 442).
EXAMPLE
12.10
<html>
<head><title>Slide Show</title>
<script type="text/javascript">
var i=0;
var timeout;
1
function preLoadImages()
{
if(document.images){
2
planet = new Array();
// global variable
3
planet[0]=new Image();
planet[0]="/images/Venus.jpg";
planet[1]=new Image();
planet[1]="/images/Neptune.jpg";
planet[2]=new Image();
planet[2]="/images/Earth.jpg";
planet[3]=new Image();
planet[3]="/images/Mars.jpg";
Continues