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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layer limit in Nutscape?

Status
Not open for further replies.

JTeagle

Programmer
May 30, 2000
49
GB
Let me guess - Nutscape will only allow 6 layers in one document, right?<br><br>I officially no longer support Nutscape, it is so *&^%$! crap.<br><br>I have spent days mucking around doing something so simple in concept and trying to get it to work in IE and Nutscape, and 99% of the problems have been with NS. This is the last straw, it is not capable of displaying anything but ridiculously simple DHTML. No wonder IE is more popular.<br><br>Comments?<br><br>
 
Dear JTeagle,<br><br>I did, earlier... maybe I will again.... later (hehe);o)<br><br>See the thead titled 'Netscape messes up my colors... Class/style problems... help' in this forum.<br><br>-pete
 
(I know I've mentioned this before, but I'll say it again because I love Netscape so much, and I say that with no sarcasm whatsoever... uhh, ok, so maybe I'm quite sarcastic here.)<br><br>The concept of layers in Netscape is so ridiculously supported that the layer tag (akkkk! why is a dHTML concept hard-coded in HTML? It should be in the JavaScript, NOT in the HTML itself- Netscape really screwed up) will not be supported in future versions of Netscape. So... the only browser that the layer tag will work in is in Netscape 4.x, not any other version of Netscape nor any version of IE whatsoever. And as it's being phased out (and not even in a backwards-compatible way- it's just being dropped immediately in future versions of NN), I wouldn't spend your time learning how to manipulate it. It's not worth it. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
I'm sorry, I may have misled you - I used the word 'layer' to represent a block that can be moved independently of the rest of the page - I'm aware of the fact that &lt;LAYER&gt; is only supported in NS. I am actually using &lt;DIV&gt;s, but it appears that I can only create 6 in one document in NS - the rest are 'undefined' if you try to retrieve them after creation. Are you aware of this limit?<br><br>I have to say I really wanted to support NS as well, but it is too difficult for what I want to do - it will have to have a non-DHTML version instead, as for other browsers.<br>
 
Dear JTeagle <br><br>Like most people i know like ie better because when you create a file you are first checking it in ie at the end you are looking at it in nets then bang <br>i suggest that you keep both browsers open and then refresh both as you go along <br><br>I first used only nets so i found that nets supported my pages and that ie did not <br><br>this way i desc earlier you keep track of both <br> <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
i have the same problem as you.<br>my site cant recognise more then 5 divs in NN but in IE there is no problems ,<br>if you know the answer for this problem please let me know<br>if not maybe i will <br><br>Thank you in advance <br>baruch.
 
after the 5th &lt;div&gt;, use &lt;layer&gt;.<br><br>It worked for me
 
I have written a javascript function which takes the layer/div properties as parameters, checks the browser, and then writes the appropriate tag to the document in question. It works fine apart from in NETSCAPE 4.x(suprise, suprise). It does work, but you have to click the link to the page twice for the layers to appear. It works fine in IE5 & Netscape6.<br><br>Like this &lt;u&gt;example in&lt;/u&gt; &lt;BODY&gt;:<br><br>&lt;script&gt;<br>&nbsp;&nbsp;&nbsp;doLayer('layername',top,left,width,height,content);<br>&lt;/script&gt;<br><br>&nbsp;&nbsp;where content is the actual HTML <p>Chris MacPherson<br><a href=mailto:thedamager@hotmail.com>thedamager@hotmail.com</a><br><a href= on the new Browza's!!<br>
Learn/t/ing D\HTML, Javascript, Java, VB5-6, COBOL, Pascal
 
I have done alot of work this summer with DropDown menus, and I never had a problem with Netscape.&nbsp;&nbsp;But I only Had 5 layers, I believe.&nbsp;&nbsp;You might try and use the &lt;span&gt; tag instead of &lt;div&gt;, might work...its worth a shot.
 
yeah, the only essential difference between span and div is the line-break on a div... although who knows what kind of limitations Netscape gives on standard tags... *grumble grumble grumble* <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Limits on layers in NS?&nbsp;&nbsp;I've never had a problem.&nbsp;&nbsp;I have pages with over a hundred layers/divs and they work fine in NS.<br><br>Are all your layers absolutely positioned?&nbsp;&nbsp;They need to be in NS, or else the browser doesn't count them in the document.layers collection.&nbsp;&nbsp;Relatively positioned &lt;divs&gt; remain separate and can't be retreived in NS.<br><br>scottandrew
 
Watch out when using absolute positioning, if your page is centered, you have a real problem on your hands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top