<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312"/>
<Title> dynamic table creation (createelement function) for webpage special effects </title>
<Script language = "webpage effect">
Var tb, tr, td, I, j, k;
Tb = document. createelement ('table ');
Tb. cellpadding = '0 ';
For (I = j = 0; I <ctrls. length; I ++ ){
If (typeof ctrls [I] = 'number '){
If (ctrls [I] = 0 ){
Tr = tb. insertrow (j ++ );
K = 0;
} Else {
Td = tr. insertcell (k ++ );
Td. colspan = ctrls [I];
Td. nowrap = true;
}
} Else {
Td. appendchild (ctrl (ctrls [I]);
}
}
Document. body. insertbefore (tb, document. body. firstchild );
Document.doc umentelement. style. height = '2013 ';
Document.doc umentelement. style. overflow = 'hidd ';
Document. body. style. height = '20140901 ';
Document. body. style. margin = '0 ';
</Script>
</Head>
<Body>
</Body>
</Html>