Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2004, 01:56 PM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default Netscape Layers Using CSS+JavaScript(DOM)

I wanna use JavaScript with layers on 'Netscape' & 'Mozilla'
browsers; using CSS '<DIV>' (MSIE) syntax.
[ i've also tried Netscape's '<LAYER>' but
to my grave surpise, it always fails ! ]
Dreamweaver MX layers works in every browser but i can't get
clue (how?) for its cryptic code.
[ Anyway, I don't want simply copy Dreamweaver code ! ]

i refer layers in MSIE like (for example):
<B>document.all.mylayer.style.visibility="hidden"; </B>
and it works well for MSIE and Opera

How can i do same for Netscape -n- Mozilla
I've already read Netscape's Devedge -n- spent 2 tough days,
but, still, i can't make it. (bad surprise!)
i don't know where i'm wrong in these simple job?

Please, give me way !
Provide few simple working examples ( of course after running them ).
Reply soon.
__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
Reply With Quote
  #2 (permalink)  
Old May 3rd, 2004, 03:33 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Netscape does not support document.all. I think it uses document.layers instead. But for a universal approach, I suggest using document.getElementById('element_ID'). Nearly all modern browsers support it, including Opera, IE and Netscape.

If you need more details, let me know.

HTH,

Snib

<><
Reply With Quote
  #3 (permalink)  
Old May 26th, 2004, 01:51 PM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Yes This works for all browsers.
(late!) Thanks to Snib and to JavaScript functions.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript, CSS, DOM - xBrowser Problem erobb Javascript 1 September 10th, 2006 06:44 AM
javascript+netscape sasidhar79 Javascript How-To 1 October 19th, 2004 05:52 AM
CSS Question / layers/ helllllp paris HTML Code Clinic 5 June 21st, 2004 04:52 PM
Tables vs. layers (CSS question) jacob HTML Code Clinic 6 December 1st, 2003 06:21 AM
CSS in Netscape cjo XML 4 October 26th, 2003 05:23 PM



All times are GMT -4. The time now is 12:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.