<!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.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Do you have a dynamic variable name? I would never
use a </FONT></DIV>
<DIV><FONT face=Arial size=2>dynamic variable to be honest with you - or at
least haven't ever </FONT></DIV>
<DIV><FONT face=Arial size=2>found the need for one yet, but from the looks of
it below, you </FONT></DIV>
<DIV><FONT face=Arial size=2>don't have a dynamic variable, but rather you're
trying to build </FONT></DIV>
<DIV><FONT face=Arial size=2>a reference to an image dynamically.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To do that, use the document.images collection and
</FONT></DIV>
<DIV><FONT face=Arial size=2>build your string when targeting a specific element
in that </FONT></DIV>
<DIV><FONT face=Arial size=2>collection:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>document.images["nt_o" + i].src =
"path/to/image.gif"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>That's not a dynamic variable name - just so you're
aware.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris Tifer</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://emailajoke.com">http://emailajoke.com</A></FONT></DIV>
<DIV> </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 11:50
AM</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>