Results 1 to 2 of 2

Thread: Color Table

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Color Table

    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.

  2. #2
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    here is one that's already built by someone.

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •