function getWindowSize()
{
if (parseInt(navigator.appVersion)>3)
{
if (navigator.appName=="Netscape" )
{
winW = window.innerWidth -25;
winH = window.innerHeight -125;
}
if (navigator.appName.indexOf("Microsoft")!=-1)
{
winW = document.body.offsetWidth -25;
winH = document.body.offsetHeight -125;
}
}
}
function fillTable()
{
var oRow, oCell;
var tabela =document.getElementById("tabela");
getWindowSize();
tabela.width=winW;
tabela.heigth=winH;
//fill with 529 cells
for(var i=0; i<=22; i++)
{
oRow= tabela.insertRow(0);
oRow.height = Math.round(winH/23);
oRow.width = winW;
for(var j=0; j<=22; j++)
{
oCell= oRow.insertCell(0);
oCell.width= Math.round(winW/23);
oCell.heigth= Math.round(winH/23);
oCell.innerHTML=" ";
}
}
fillCells();
}como vcs vêem há 23 linhas e 23 colunas cada linha num total de 529 cells;eu tbm me preocupei em criar uma tabela que tivesse o tamanho da página...
No iexplorer tah trankilo funcionando com eu queria, mas no firefox a tabela fica pequena... +/- a metade da página
o que posso corrigir pra que isso naun ocorra mais










