L
LRW
(Sorry if this is a repost...my newsreader keeps crashing on the
posting--I don't know if the message going out or not)
For some reason this javascript just won't work in Firefox. It works
fine in
IE, though.
I know, IE is a bit more permissive than IE, and sometimes lets errors
work
when they shouldn't. But from what I can see, I just don't see what's
wrong.
I must have SOMETHING wrong, but I don't see what.
I know the page does have some HTML 4 errors. The W3C validation erros
though aren't anything that should be affecting javascript, however.
Could someone give me a clue what might be preventing this from
working?
Oh, it's the toggling the display block/none at the bottom of the
page.
Here's the URL, and I'll also paste the relevant code below too.
Thanks!
Liam
http://gto.ie-studios.net/item.php?itemid=3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Games To Order - Your online discount superstore for all your
gaming
needs</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--\ function make_vis(e)
{
var WX = e;
if (WX=="d")
{
subtbl_desc.style.display = "block";
} else {
subtbl_desc.style.display = "none";
}
if (WX=="r")
{
subtbl_rev.style.display = "block";
} else {
subtbl_rev.style.display = "none";
}
if (WX=="s")
{
subtbl_stuff.style.display = "block";
} else {
subtbl_stuff.style.display = "none";
}
} //-->
</script>--snip--<table><tr><td> <div id="subtbl_desc"
style="display:block"
align="left"> <table width="100%"> <tr> <td width="100%">
TEXT 1 HERE </td>
</tr> </table>
</div>
<div id="subtbl_rev" style="display:none" align="left">
<table> <tr> <td>
TEXT 2 HERE </td> </tr> </table>
</div>
<div id="subtbl_stuff" style="display:none" align="left">
<table> <tr> <td>
TEXT 3 HERE </td> </tr> </table>
</div></td>
</tr>
</table>
posting--I don't know if the message going out or not)
For some reason this javascript just won't work in Firefox. It works
fine in
IE, though.
I know, IE is a bit more permissive than IE, and sometimes lets errors
work
when they shouldn't. But from what I can see, I just don't see what's
wrong.
I must have SOMETHING wrong, but I don't see what.
I know the page does have some HTML 4 errors. The W3C validation erros
though aren't anything that should be affecting javascript, however.
Could someone give me a clue what might be preventing this from
working?
Oh, it's the toggling the display block/none at the bottom of the
page.
Here's the URL, and I'll also paste the relevant code below too.
Thanks!
Liam
http://gto.ie-studios.net/item.php?itemid=3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Games To Order - Your online discount superstore for all your
gaming
needs</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--\ function make_vis(e)
{
var WX = e;
if (WX=="d")
{
subtbl_desc.style.display = "block";
} else {
subtbl_desc.style.display = "none";
}
if (WX=="r")
{
subtbl_rev.style.display = "block";
} else {
subtbl_rev.style.display = "none";
}
if (WX=="s")
{
subtbl_stuff.style.display = "block";
} else {
subtbl_stuff.style.display = "none";
}
} //-->
</script>--snip--<table><tr><td> <div id="subtbl_desc"
style="display:block"
align="left"> <table width="100%"> <tr> <td width="100%">
TEXT 1 HERE </td>
</tr> </table>
</div>
<div id="subtbl_rev" style="display:none" align="left">
<table> <tr> <td>
TEXT 2 HERE </td> </tr> </table>
</div>
<div id="subtbl_stuff" style="display:none" align="left">
<table> <tr> <td>
TEXT 3 HERE </td> </tr> </table>
</div></td>
</tr>
</table>