in this:Error: unterminated string literal
document.write("
--------------------^
Code: Select all
document.write("
<table style=\"border: 1px solid #CCCCCC;\">
<tr>
<td>
<table width='500' height='400'>
<tr height=\"0\">
<td>
<h2 style=\"font-family: Arial;\">Item Viewer</h2>
</td>
</tr>
<tr>
<td>
<div align=\"center"\><img id=\"SelectedImg\" src=\"\" height=\"300\" width=\"475\" border=\"1\" style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\" /></div>
</td>
</tr>
<tr height=\"30\">
<td>
</td>
</tr>
<tr>
<td height=\"75\">
<table>
<tr>
<td>
<a href=\"\" onclick=\"return moveIS('left')\">
<img src=\"images/ISLeft.png\" border=0 />
</a>
</td>
<td width=\"100%\">
<div id=\"IS\" style=\"border: 1px solid; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">
<script language=\"javascript\">
for (i in images)
{
if (i < 6)
{
numberOfISImages += 1;
document.write(\"<a href='' onclick='return selectImage(document.ISimg\" + i + \".src)'><img ID='ISimg\" + i + \"' src='\" + images[i][0].src + \"' height='70' width='75' style='border: 1px solid black; border-left: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC;' /></a>\");
}
}
</script>
</div>
</td>
<td>
<a href=\"\" onclick=\"return moveIS('right')\">
<img src=\"images/ISRight.png\" border=\"0\" />
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
");