troubleshooting Question

Able to show in IE and failure in NS

Avatar of ppk78
ppk78 asked on
JavaScript
5 Comments1 Solution307 ViewsLast Modified:
The following codes work well in IE and fails in Netscape.

Could anyone help me on it?

Thanks very much for the attention.

<html>
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css">
     #ie {display:block}
     #ns {display:table-cell}
</style>
<script language="JavaScript">
     <!--
     function JsMenuBar(jsId) {
          for (jsCounter=1;jsCounter<3;jsCounter++) {
               eval("item"+jsCounter).style.display="none";
          }

          jsId.style.display="block";
     }
     //-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0">
<table width="100%" cellspacing="0">
     <tr>
          <td width="50">&nbsp;</td>
          <td width="100" align="center" bgcolor="#009900" style="cursor:pointer" onclick="JsMenuBar(item1);return true">Tab 1</td>
          <td width="10">&nbsp;</td>
          <td width="100" align="center" bgcolor="#FF9900" style="cursor:pointer" onclick="JsMenuBar(item2);return true">Tab 2</td>
          <td>&nbsp;</td>
     </tr>
     <tr>
          <td colspan="5" bgcolor="#009900" id="item1" style="display:block">Contents of Tab 1</td>
          <td colspan="5" bgcolor="#FF9900" id="item2" style="display:none">Contents of Tab 2</td>
     </tr>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
pocar

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros