Re: A problem with an apparently common JS menu...



VK wrote:
<snip>
> Netscape 4.x is gone, but as a reminder document.layers are still
> supported (or at least do not return undefined > false) on some
> browsers, for example Netscape (what a surprise!) or Safari.

This statement is false. Anyone surprised by that?

<snip>
> 1. Remove all "if (document.layers) {...}" branches completely
> 2. Replace all "else if (document.all)" with "if
> (document.getElementById)"
> 3. Go through the text and replace all "document.all("
> strings with "document.getElementById("
> 4. Save and test.

Advice best considered with an eye to the veracity of the statement
above.

Richard.


.



Relevant Pages

  • Re: On good authority...
    ... what are your feelings about this Bill Clinton sex scandal ... This will surprise all lurkers... ... I could care less. ...
    (sci.electronics.design)
  • Re: Great SWT Program
    ... but that I personally am apt to find those of CLIs ... much the case with my home setup, ... surprise assumes extra significance. ...
    (comp.lang.java.programmer)
  • Re: The hidden incommensurate quality of paradigms
    ... <snip an awful lot> ... There should be no surprise, ... Biological process is 'bimorphic' as in a complementary pairing ... There are innumerable dichotomies in biology including the proclivity ...
    (talk.origins)
  • Re: Boyd Coddington Down
    ... ANYTHING (he was the driver running around for parts when he first ... wanted Boyd to build a race car for me. ... Wouldn't surprise me - Boyd seemed to attract good people and then they ...
    (uk.rec.motorcycles)
  • Re: The hidden incommensurate quality of paradigms
    ... <snip an awful lot> ... There should be no surprise, ... Biological process is 'bimorphic' as in a complementary pairing ... There are innumerable dichotomies in biology including the proclivity ...
    (talk.origins)