I'm trying to make a simple image switch where I have images in one table and when they click on the image it puts a larger image in the second table. That all works fine using the name value. Now I what a description of the image to be placed in another table but can not figure out how to reference it with a single onclick command. Here is my code:
<body>
<table width="740" border="0">
<tr>
<td width="130">
<img src="image01.gif" width="130" height="100" onClick="document.images ['view'].src='image01lg.gif';" /><br />
<img src="image02.gif" width="130" height="100" onClick="document.images ['view'].src='image02lg.gif';" /><br />
<img src="image03.gif" width="130" height="100" onClick="document.images ['view'].src='image03lg.gif';" /><br />
<img src="image04.gif" width="130" height="100" onClick="document.images ['view'].src='image04lg.gif';" /><br />
<img src="image05.gif" width="130" height="100" onClick="document.images ['view'].src='image05lg.gif';" />
</td>
<td width="480" valign="top"><table width="100%" border="0">
<tr>
<td><div align="center"><span class="style1">Virtual Garage Sale </span></div></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width=300>
<img border="1" src="selectpic.gif" width="300" height="225" title="This is a title" name="view"> </td>
<td width=>
######DESCRIPTION GOES HERE#####
</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="130" valign="top">
<img src="image06.gif" width="130" height="100" onClick="document.images ['view'].src='image06lg.gif';" /><br />
<img src="image07.gif" width="130" height="100" onClick="document.images ['view'].src='image07lg.gif';" /><br />
<img src="image08.gif" width="130" height="100" onClick="document.images ['view'].src='image08lg.gif';" /><br />
<img src="image09.gif" width="130" height="100" onClick="document.images ['view'].src='image09lg.gif';" /><br />
<img src="image10.gif" width="130" height="100" onClick="document.images ['view'].src='image10lg.gif';" />
</td>
</tr>
</table>
</body>
</html>
Thanks
<body>
<table width="740" border="0">
<tr>
<td width="130">
<img src="image01.gif" width="130" height="100" onClick="document.images ['view'].src='image01lg.gif';" /><br />
<img src="image02.gif" width="130" height="100" onClick="document.images ['view'].src='image02lg.gif';" /><br />
<img src="image03.gif" width="130" height="100" onClick="document.images ['view'].src='image03lg.gif';" /><br />
<img src="image04.gif" width="130" height="100" onClick="document.images ['view'].src='image04lg.gif';" /><br />
<img src="image05.gif" width="130" height="100" onClick="document.images ['view'].src='image05lg.gif';" />
</td>
<td width="480" valign="top"><table width="100%" border="0">
<tr>
<td><div align="center"><span class="style1">Virtual Garage Sale </span></div></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width=300>
<img border="1" src="selectpic.gif" width="300" height="225" title="This is a title" name="view"> </td>
<td width=>
######DESCRIPTION GOES HERE#####
</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="130" valign="top">
<img src="image06.gif" width="130" height="100" onClick="document.images ['view'].src='image06lg.gif';" /><br />
<img src="image07.gif" width="130" height="100" onClick="document.images ['view'].src='image07lg.gif';" /><br />
<img src="image08.gif" width="130" height="100" onClick="document.images ['view'].src='image08lg.gif';" /><br />
<img src="image09.gif" width="130" height="100" onClick="document.images ['view'].src='image09lg.gif';" /><br />
<img src="image10.gif" width="130" height="100" onClick="document.images ['view'].src='image10lg.gif';" />
</td>
</tr>
</table>
</body>
</html>
Thanks