-
Color Table
I'm attempting to write the following Color Table.
<TBODY>
<TR><td rowspan="13" bgcolor="#ffffff"> </td>
<TD width="10" height="10" bgColor=#2F4F4F><A href="javascript:l()"
onmouseover="r('#2F4F4F'); return true"><IMG border=0 height=10
src="gif2.gif" width=10></A></TD>
<TD width="10" height="10" bgColor=#000033><A href="javascript:l()"
onmouseover="r('#000033'); return true"><IMG border=0 height=10
src="gif2.gif" width=10></A></TD>
<TD width="10" height="10" bgColor=#000066><A href="javascript:l()"
onmouseover="r('#000066'); return true"><IMG border=0 height=10
src="gif2.gif" width=10></A></TD>
I used the following function without success.
function writeTable() {
var row, col;
for (row = 0; row < 12; row++) {
document.write("<tr>");
for (col = 0; col < 18; col++) {
document.write("<td width='10' height='10' bgColor='" + getRGBColor(row,col) + "'><A href="javascript:l()" onmouseover="r(\"" + getRGBColor(row,col) + "\"); return true"><IMG border=0 height=10 src="gif2.gif" width=10></A></td>");
}
document.write("</tr>");
}
}
Can anybody offer any assistance? Your help will be greatly appreciated.
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks