<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>you can write:</FONT></DIV>
<DIV><FONT face=Arial size=2>document.getElementById (<FONT
face="Times New Roman">'nt_o'</FONT>+i);</FONT></DIV>
<DIV><FONT face=Arial size=2>it works.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=grillo@lazzuri.com.br href="mailto:grillo@lazzuri.com.br">Marcelo
Simon</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">* Yahoo / Javascript</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 24, 2003 6:50
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] dynamic variables
names</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>Hi list, </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>It's me again, and I need some help again
please.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>how can I use dynamic variables name in JS ?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I mean, <FONT size=2>how do I evaluate the 2 parts so they
work ?</FONT></FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>if ( i <= number ){<BR> ['nt_o'+i].src =
'../_img/1_nota_0'+i+'_on.gif';<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>thanks in advance</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR><A
href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>