is that what you were looking for?
Main Topics
Browse All TopicsHello there folks,
well I have a problem with the IE Vs Netscape.
I'm pretty new to Javascript and my problem is this...
Want to do
Have an image displayed on a form. When the user clicks the image a <DIV> is displayed and when the user clicks the image again the <DIV> is removed.
I have this working in IE like so...
<script>
function showTable(tableName)
{
if (tableName.style.display == "none")
{
tableName.style.display = "block";
}
else
{
tableName.style.display = "none";
}
}
</script>
<img align="center" src="images/somebutton.gif
<div style="display:none" ID="Tab1">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td>
<font size="2">Email:<A href="mailto:blah@blah.com
<font size="2">Web:<a href="http://www..com">htt
</td>
</tr>
<tr>
<td colspan="2">blah blah</td>
</tr>
</table>
</div>
I need to be able to do the same thing in Netscape Navagator Version 7.02
Pretty Important
thx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
here is your full code
<html>
<head>
<script type="text/javascript">
function toggleShow(theDiv)
{
if (document.getElementById(t
{
document.getElementById(th
}
else
{
document.getElementById(th
}
}
</script>
</head>
<body>
<img align="center" src="images/somebutton.gif
<div style="display:none" ID="Tab1">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td>
<font size="2">Email:<a href="mailto:blah@blah.com
<font size="2">Web:<a href="http://www.a.com">ht
</td>
</tr>
<tr>
<td colspan="2">blah blah</td>
</tr>
</table>
</div> </body>
</html>
try this
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function showTable()
{
if (document.getElementById("
{
document.getElementById("T
}
else
{
document.getElementById("T
}
}
</script>
</head>
<body>
<img align="center" src="images/somebutton.gif
<div style="display:none" ID="Tab1">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td>
<font size="2">Email:<A href="mailto:blah@blah.com
<font size="2">Web:<a href="http://www..com">htt
</td>
</tr>
<tr>
<td colspan="2">blah blah</td>
</tr>
</table>
</div>
</body>
</html>
Business Accounts
Answer for Membership
by: hexagon47Posted on 2003-04-15 at 08:32:43ID: 8334527
function toggleShow(theDiv) heDiv).sty le.display == 'none') eDiv).styl e.display = 'block'; eDiv).styl e.display = 'none';
{
if (document.getElementById(t
{
document.getElementById(th
}
else
{
document.getElementById(th
}
}