faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes

Entry

Does NN 4.07 have a limit to the amount of layers you can put into a page? It appears that more than 5 layers, the page rebuilds itself incorrectly.

Jan 18th, 2002 06:30
Juergen Thelen, Mike Yebba,


I don't think, that this is a question of layer limits. Imo it's more 
likely, that you got trapped by the so-called NN4 Resize Bug.
Some versions of NN4 do not rebuild the page correctly, when using 
layers and/or CSS. Just insert the following snippet in your <HEAD> 
block, and try again... :o)
--- snip ---
var n4 = (document.layers) ? true : false;
function NN4F(i)
{
  if (n4)
  {
    if (i == 1)
    {
      document.NN4pgW = innerWidth;
      document.NN4pgH = innerHeight;
      onresize = NN4F;
    }
    else if (innerWidth != document.NN4pgW || innerHeight != 
document.NN4pgH) 
    {
      location.reload();
    }
  }
}
NN4F(1);
--- snap ---
Hth, Juergen