...

View Full Version : Dynamic 'layers' in NS4 - Div VS Layer



rsci
01-09-2003, 08:08 PM
Will Netscape, all versions of 4.x, support a dynamically written div or should a layer tag be used?

for example, will this work in NS 4.x?
document.write('<div top="10" left="10" style="position:absolute, background-color:blue;heigth:100;width:100;">text here</div>');

Thanks.

Phip
01-09-2003, 08:12 PM
good luck. :p

brothercake
01-10-2003, 08:12 PM
Yes it will work, but not quite like that:

document.write('<div style="position:absolute;left:0px;top:0px;background-color:blue;height:100px;width:100px;">text here</div>');

but absolutely-positioned divs are incredibly unstable in ns4. If you're determined to provide rich content for ns4, then you'd do well to investigate its <layer> setup.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum