[thelist] display="inline" and DTD HTML 4.01

super super supercop at shaw.ca
Tue Nov 22 13:33:44 CST 2005


Hi,

I am stuck with a javascript rollover problem with DTD,
for some reason, after I declared DTD HTML 4.01, the display="inline" doesn't worked in firefox (worked in IE)

If I pull off the DTD, it worked in both browser,

Does somebody know whats wrong???
If the display="inline" is not good to use, is there a better way to show a layer of HTML codes for rollovers???

Thank you very much for your help, the file is uploaded and attached below for reference,

thanks again,


Stanley,

===============================



http://test.sc23.info/



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
<!--

function displayover3(obj, where)
{

		document.all("ob3").style.display="inline";
}

function displayover2(obj, where)
{

		document.all("ob2").style.display="inline";
}


//-->
</script>

</head>
<body >

<table width="776" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
      <td><a href="#"
				onmouseover="displayover3();">test1</a> &nbsp; <a href="#"
				onmouseover="displayover2();">test2</a></td>
  </tr>

	<tr>
      <td><span id="ob0" style="display:none">0</span><span id="ob3" style="display:none">3</span><span id="ob2" style="display:none">2</span></td>
  </tr>
	<tr>
		<td valign="top" class="otherbg">&nbsp;</td>
	</tr>
</table>
</body>
</html>







More information about the thelist mailing list