bmurray 0 Newbie Poster

Looking for an alternative script or workaround for IE 6 table layout bugs.

I'm using Yahoo Site Builder 2.3

The current script that I'm using is not working. When the page loads the table cells are not the correct size. If I refresh the page everything is perfect. If I use Mozilla Firefox everything is perfect. The current script that I'm using is the following:

<SCRIPT>// workaround for IE table layout bugs
function tableWorkaround(cols) { if (document.all) { document.write('<tr>'); for (var i = 0; i < cols; i++) { document.write('<td></td>'); } document.write('</tr>') }; }
function tableWorkaround2_colheader() { if (document.all) { document.write('<col width="0">') }; }
function tableWorkaround2(rowHeight) { if (document.all) { document.write('<td height="' + rowHeight + '">'); document.write('</td>') }; }
</SCRIPT>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.