D
David. E. Goble
Hi all;
I have the following code;
var picssigs = new Array(
"sigs/finished1.jpg",
"sigs/foghorn.jpg",
"sigs/motto.jpg",
"sigs/sig.jpg",
"sigs/SWAT.jpg",
"sigs/title.gif"
);
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++)
{
var imgsigs = new Image();
imgsigs.src = picssigs;
}
If I rename all the files as numbers ie 1.jpg, 2.jpeg, 3.gif. Can I
then some how load these.
Or would I first need to make sure they have the same extension.
Regards David. E. Goble
http://degoble.customer.netspace.net.au
degoble[AT]netspace.net.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
I have the following code;
var picssigs = new Array(
"sigs/finished1.jpg",
"sigs/foghorn.jpg",
"sigs/motto.jpg",
"sigs/sig.jpg",
"sigs/SWAT.jpg",
"sigs/title.gif"
);
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++)
{
var imgsigs = new Image();
imgsigs.src = picssigs;
}
If I rename all the files as numbers ie 1.jpg, 2.jpeg, 3.gif. Can I
then some how load these.
Or would I first need to make sure they have the same extension.
Regards David. E. Goble
http://degoble.customer.netspace.net.au
degoble[AT]netspace.net.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223