I'm a real hack at most things in programming, so bear with me; Javascript may not even be the best way to do this:
I have an html table with 7 columns. Each column contains a picture of an arrow. What I want to accomplish is to have only 1 arrow appear, depending on a value in a variable, file, or other easily-changable item. This way, I can change the value from a 1 to a 2, and the arrow will display in the second column instead of the first, etc.
My questions are:
1-- how to I code the pictures to only show up when their value is present
2-- what is the easiest method to change the value without actually modifying code all the time?
Thanks in advance!
<tr>
<td height=37 width=44 valign="top" align="center"><center></center></td>
<td height=37 width=44 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center><IMG ALT="^" SRC="images/arrow.gif"></center></td>
<td height=37 width=76 valign="top" align="center"><center></center></td>
</tr>
I have an html table with 7 columns. Each column contains a picture of an arrow. What I want to accomplish is to have only 1 arrow appear, depending on a value in a variable, file, or other easily-changable item. This way, I can change the value from a 1 to a 2, and the arrow will display in the second column instead of the first, etc.
My questions are:
1-- how to I code the pictures to only show up when their value is present
2-- what is the easiest method to change the value without actually modifying code all the time?
Thanks in advance!
<tr>
<td height=37 width=44 valign="top" align="center"><center></center></td>
<td height=37 width=44 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center></center></td>
<td height=37 width=48 valign="top" align="center"><center><IMG ALT="^" SRC="images/arrow.gif"></center></td>
<td height=37 width=76 valign="top" align="center"><center></center></td>
</tr>