1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
4 <TITLE>Mozilla Test: Table + DHTML Problem in Mozilla
</TITLE>
5 <META name=
"author" content=
"Antti Huotari">
7 <SCRIPT type=
"text/javascript" language=
"javascript">
11 // window.onerror = null;
13 var agt = navigator.userAgent.toLowerCase ();
15 var is_major = parseInt (navigator.appVersion);
16 var is_minor = parseFloat (navigator.appVersion);
18 var is_nav = ((agt.indexOf('mozilla') != -1)
19 && (agt.indexOf('spoofer') == -1)
20 && (agt.indexOf('compatible') == -1)
21 && (agt.indexOf('opera') == -1)
22 && (agt.indexOf('webtv') == -1));
24 var is_nav5 = (is_nav && (is_major == 5));
25 var is_ie = (agt.indexOf("msie") != -1);
26 var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0") != -1));
28 function moveTestdiv ()
30 document.getElementById('testDiv').style.left = 200 + 'px';
31 document.getElementById('testDiv').style.top = 200 + 'px';
36 if (is_nav5 || is_ie5)
38 setTimeout ("moveTestdiv ()", 700)
42 // ===== hiding ends ===== -->
49 <BODY style=
"background: #999999; color: #000000;" onLoad=
"init()">
51 <div id=
"testDiv" style=
"position: absolute; left: 70px; top: 70px;">
52 <TABLE border=
"0" width=
"173" bgcolor=
"#CC6600" cellspacing=
"0" cellpadding=
"0">
54 <TD><P align=
"center"><B>Testing
</B></P></TD>
57 <TABLE border=
"0" width=
"173" cellspacing=
"0" cellpadding=
"0">
59 <TD width=
"9" bgcolor=
"#666666"> </TD>
60 <TD width=
"123" bgcolor=
"#FF9900">Test, test and test...
</TD>
61 <TD width=
"9" bgcolor=
"#666666"> </TD>
64 <TABLE border=
"0" width=
"173" bgcolor=
"#CC6600" cellspacing=
"0" cellpadding=
"0">
73 <P>Problem: Tables inside a DIV get border=
1 after moving the DIV.
74 If you
<A href=
"test2.html"><B>remove the border
</B></A>
75 attribute from the tables, the border doesn't show up.
</P>