HighDots Forums  

Re: Javascript and Menus using styles

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Javascript and Menus using styles in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sean Jorden
 
Posts: n/a

Default Re: Javascript and Menus using styles - 09-03-2003 , 02:57 AM






"Disco" <discooctopus (AT) yahoo (DOT) com> wrote in news:86h5b.1025$U74.61328
@news.optus.net.au:

Quote:
Hi,

Does anybody know how to make this piece of javascript (below) work in
netscape? This only works in IE (I have only tried 5.5 and 6). I would
like to know how to make this work exactly the same way in Netscape.

Thanks very much...


use document.getElementById(pTable) instead of document.all[pTable]

document.all is microsoft specific and document.getElementById is the
standards way supported by modern browsers. IE4, I believe, is the only
browser that supports document.all but not document.getElementById.




--
In theory there is no difference between theory and practice. In practice
there is. - YB


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.