18 function setCountMessage() {
19 var tr
= document
.getElementById("row");
21 var countCell
= document
.createElement("td");
22 countCell
.setAttribute("class", "count-table-cell");
23 tr
.appendChild(countCell
);
25 var countDiv
= document
.createElement("div");
26 countDiv
.setAttribute("class", "count-text");
27 countDiv
.innerHTML
= "Success!";
28 countCell
.appendChild(countDiv
);
30 var right
= document
.createElement("td");
31 tr
.appendChild(right
);
33 var below
= document
.getElementById("below");
34 document
.defaultView
.getComputedStyle(below
, null).getPropertyValue("width");
35 // without this, it shows up in both
36 countCell
.style
.width
= 60 + "px"; // without this, is doesn't show up in either
41 <body onload=
"setCountMessage();">
43 <table class=
"count-table">
47 <div id=
"below"></div>