Re: For Loop Help
- From: Lasse Reichstein Nielsen <lrn@xxxxxxxxxx>
- Date: Tue, 06 Sep 2005 18:52:01 +0200
"Craig L" <w1zard10@xxxxxxxxxxxxxxx> writes:
> var image1, image2, image3, image4
If you have any serious number of such variables, you should probably
just use an array:
var image = [];
> To a for loop that changes the variable name so I don't have to list them,
> Like
>
> for (var i = 1; i <= 4; i++) {
image[i] = ...
> }
/L
--
Lasse Reichstein Nielsen - lrn@xxxxxxxxxx
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
.
- Follow-Ups:
- Re: For Loop Help
- From: Craig L
- Re: For Loop Help
- References:
- For Loop Help
- From: Craig L
- For Loop Help
- Prev by Date: Re: select object manipulation
- Next by Date: Re: javascript in anchor tags
- Previous by thread: Re: For Loop Help
- Next by thread: Re: For Loop Help
- Index(es):
Relevant Pages
|