On 11 Nov 2004 07:04:35 -0800, LastOfEight <> wrote:
[snip]
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
DOCTYPEs without the URL aren't always recognised. Also, you'll probably
want to use HTML 4.01, not 4.0:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
[snip]
> <SCRIPT type=text/javascript>
You need to quote that attribute value.
> <!--//
Hiding scripts is an outdated practice. All browsers now in use understand
what a SCRIPT element is, even if they can't execute them.
> function hideRows(){
> for (i = 0; i <= 5; i++){
From a quick look, the line above is the source of your problems. You
don't have a table with the id, table0, so getElementById will return
null. Obviously, trying to access any property of null is nonsense, so the
script errors and drops out of the function. Similarly, you don't have
table3, table4, or table5 (unless you cut the HTML short).
By the way, you should declare i, id, and e2 using the var keyword. If
not, they'll become global variables.
[snip]
> <TABLE id=table1 borderColor=#ff0000 cellSpacing=0 cellPadding=0
> [...]
You need to quote the attribute value for bordercolor. Really, you
shouldn't be using tables for layout anyway, and CSS should replace
presentational attributes.
> <TBODY>
There's nothing wrong with including the TBODY element, but it's only
necessary if you actually have more than one table section.
[snip]
That should solve the script problems, but I do suggest you validate your
HTML (<URL:http://validator.w3.org/>).
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
|