function init() { if(document.layers) { document.D1.top = window.pageYOffset setTimeout("init()", 111) } else if(document.all) window.onscroll = new Function("document.all.D1.style.pixelTop = document.body.scrollTop") } </script> </head> <body onLoad="init()"> <div id=D1 style="position:absolute; top:0; left:0; color:white; width:100; height:50; clip:rect(0,100,50,0); background-color:blue; layer-background-color:blue;"> 고정된 레이어 </div> <div id=D2 style="position:absolute; top:0; left:100; color:white; width:100; height:50; clip:rect(0,100,50,0); background-color:red; layer-background-color:red;"> 고정 안됨 </div>