[Javascript] dynamic variables names

Marcelo Simon grillo at lazzuri.com.br
Tue Jun 24 10:50:15 CDT 2003


Hi list, 

It's me again, and I need some help again please.

how can I use dynamic variables name in JS ?

I mean, how do I evaluate the 2 parts so they work ?

if ( i <= number ){
   ['nt_o'+i].src = '../_img/1_nota_0'+i+'_on.gif';
}

thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030624/1a4f75b2/attachment.htm>


More information about the Javascript mailing list