PDA

View Full Version : Color Table



jean46806
07-19-2007, 01:42 PM
I'm attempting to write the following Color Table.

<TBODY>
<TR><td rowspan="13" bgcolor="#ffffff">&nbsp;</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.

sqlguru44
07-28-2007, 10:00 PM
here is one that's already built by someone.

http://www.helpolia.com/TechHelp/ColorTable.aspx