Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expert in "layers" needed

Status
Not open for further replies.

JeroenB

Programmer
Apr 8, 2001
93
BE
Hi,
I have the following problem and I hope You can help me out
Take a look at the following page of my site;


It is possible to start the page with all the layers closed or all the layers opened, and this by changing the value "1" in onLoad="initPage(1, 'full display')".

I wondered if it is possible to start the page with 2 layers opened and 2 closed.

I hope somenone is familiar with this script and can help me out !

Thanks in advance
Jeroen
JeroenBekaert@hotmail.com
 
you can use CSS to hide an element

<div id=&quot;MenueREPLChild&quot; class=&quot;child&quot; style=&quot;display:none&quot;> jared@eae.net -
 
Here's a tidbit for ya...that page doesn't, and as long as only div is used, will neve display correctly in a non CSS compatible browser (which is about 58% of the people that surf)...Just though you may wanna know :) You may want to incorporate some <layer> tags, but be aware that javascript (the origional netscape creation, not microsoft's Jscript) calls <layer> different (as document.layername.layeratribute). You can use tripod for an example, being as they embeded a layer at the end of your code for their advertisement :p This way your page will look good in both worlds, just my opinion though...

Rob
 
hi,
thanks for your responses;
rjr9999, you 're correct; if I put use <div id=&quot;MenueREPLChild&quot; class=&quot;child&quot; style=&quot;display:none&quot;>, the layers doen't work anymore within NS.
But I really can't figure out how to solve it (like you told me by using the <layers>-tag.)
Could you explain it a little bit more or even better, just apply it to my page. (As I really am no expert in this kind of stuff)

Thanks anyway,
JeroenB
jeroenbekaert@hotmail
com
 
Rob, you may have opionions but:

&quot;a non CSS compatible browser (which is about 58% of the people that surf)&quot;

in the context you used it (needing layer tags) is really not true. Especially as CSS support is really a seperate issue than <layer> tag support.

Please take a look at this:


It clearly shows that only 9% of the browser population would be able to render <layer> tags at all. <slayer> tags are holding back the web. Everyone (including the consumers, espceially the developers) would be better off if people stopped coding for NS4!

jared@eae.net -
 
Yeh, ok
but it would also be nice to have this thing working for this 9% of NS users.
So, if someone has suggestions for solving this, please help me out.

Thanks
JeroenB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top