X
X l e c t r i c
This isn't working and I can't figure out what I'm doing wrong:
var c_imgs = new Array(
'images/champascari.jpg',
'images/champfangio.jpg',
'images/champhawthorn.jpg',
'images/champhill.jpg',
'images/champsurtees.jpg',
'images/champlauda.jpg',
'images/champschumacher.jpg');
var pre_img;
for (var i = 0; i < c_imgs.length; i++)
{
pre_img = new Image();
pre_img.src = c_imgs;
}
If this code is correct, should I put it in a function and then call for
it ?
This is the page it's on:
http://www.xlectric.com/Ferrari/champs.html
Later, Art.
var c_imgs = new Array(
'images/champascari.jpg',
'images/champfangio.jpg',
'images/champhawthorn.jpg',
'images/champhill.jpg',
'images/champsurtees.jpg',
'images/champlauda.jpg',
'images/champschumacher.jpg');
var pre_img;
for (var i = 0; i < c_imgs.length; i++)
{
pre_img = new Image();
pre_img.src = c_imgs;
}
If this code is correct, should I put it in a function and then call for
it ?
This is the page it's on:
http://www.xlectric.com/Ferrari/champs.html
Later, Art.