DOM形式でテーブルを作る。
//テーブル
tbl = document.createElement( "TABLE" );
tbl.className = "table_class";
$('test').appendChild(tbl);
//テーブルBody
tbd = document.createElement( "TBODY" );
tbl.appendChild(tbd);
//行追加
row = document.createElement("TR");
tbd.appendChild(row);
//セル追加
cell = document.createElement("TD");
row.appendChild(cell);
//イメージ追加
imgobj = document.createElement( "IMG" );
imgobj.setAttribute("border","0");
imgobj.setAttribute("src","./images/error.gif");
cell.appendChild( imgobj );
//テキスト追加
countx = document.createTextNode(errorCount);
cell.appendChild(countx);
最終更新:2007年04月13日 17:52