Click to See Complete Forum and Search --> : Java script help please simpler?


Lon
08-26-2003, 09:55 PM
:confused:
If my first request is too much... I can live with just this little script help.

I need a little script to add the count from 1 to the 40 to change in this line this line.....

else if(document.sizer.newsize[3].checked) { image.className="size100"; }

to change the "image"(as in -image.className=) to automatically include all (image)s from 1 to 40. The number of images that this line will handle.As in (image1, image2, image3 and so on to 40)

Thanks Lon

Charles
08-27-2003, 04:47 AM
for (i=1; i<=40; i++) {if(document.sizer.newsize[3].checked) image['image' + i] = 'size100'}