28 Часть III. Современный HTML
<HTML>
<HEAD>
<TITLE>Layer 10</TITLE>
</HEAD>
<BODY>
<LAYER NAME=FIRST TOP=40 LEFT=60 BACKGROUND=bg.gif><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle.</BXBR><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle. </BXBR><B>This is the first layer. It's in the middle.</BXBR></LAYER>
<IAYER NAME=SECOND TOP=80 LEET=200 BACKGROUND=bg2.gif ABOVE=FIRST><B>This is the second layer. It's behind the first layer.</BXBR><B>This is the second layer. It's behind the first layer.</BXBR><B>This is the second layer. It's behind the first layer. </BXBR><B>This is the second layer. It's behind the first layer. </BxBR><B>This is the second layer. It's behind the first layer.</BXBR><B>This is the second layer. It's behind the first layer. </BXBR><B>This is the second layer. It's behind the first layer. </BXBR><B>This is the second layer. It's behind the first layer. </BXBR></LAYER>
<LAYER NAME=THIRD TOP=100 LEFT=80 BELOW=FIRST>
<IMG SRC=init.gif>
</LAYER>
</BODY></HTML>
Встраивание скриптов в слои
Возможности слоев могут быть еще более расширены встраиванием в них специальных программ (скриптов), позволяющих, например, делать слои видимыми и невидимыми или перемещать их по окну браузера.