Click to See Complete Forum and Search --> : Some problems with tags DIV and LAYER


ptik
02-19-2003, 05:12 AM
I have some problems with tag div. When I use next code

<div id=m1 onmouseout=menuOff(1,1) onmouseover=menuOn(1,1)>
<layer onmouseout=menuOff(1,1) onmouseover=menuOn(1,1)>

for mouseover-visible-layers all browsers read it correct.

When I use

<div><layer>

for all-time-visible-layers some browsers (for example Opera7 or Netscape 4.7)
can't support CSS-properties such as font-size or position.

Please, give answer if you know what kind of problem in my code.

gil davis
02-19-2003, 05:36 AM
NS 4 has a different way of storing the styles than other browsers. They use three arrays - document.tags, document.classes and document.ids - which store the styles. Since a LAYER (or a DIV that is positioned) has it's own DOCUMENT, I would expect it to have it's own style arrays. If nothing is specified, they are probably empty. I don't know if there is any inheritance. You could try repeating your style definitions inside the LAYER.

I don't know anything about Opera. According to W3C recommendations, browsers are supposed to ignore any tag that it does not recognize and it's contents. However, I know that IE does not follow this recommendation.

Stefan
02-20-2003, 03:13 AM
Originally posted by ptik
When I use

<div><layer>


But why would you want to?
NS 4.x understands <div> just fine.
Get rid of that crappy <layer> stuff, it's not needed.

celebguy_dv
03-04-2003, 03:17 AM
http://banners.dollarmachine.com/pic/2014000/hal001.gif (http://www.kinkyceleb.com/1261795520)