<div class="codetitle"> <span><a style="CURSOR: pointer" data="74909" class="copybut" id="copybut74909" onclick="doCopy('code74909')"><u>复aze代码</u></a></span> 代码如下:</div> <div class="codebody" id="code74909"> <br><script 언어="javascript"> <br>var MAX_INDEX=4; <br>함수 변경(ddd) <br>{ <br>if(ddd.style.zIndex<= MAX_INDEX) <BR>{ <BR>ddd.style.zIndex = MAX_INDEX 1; <BR>MAX_INDEX; <BR>} <BR>} <BR></script> <br><div id="layer1" onclick="javascript:change(this);" 스타일="위치:절대;마진-왼쪽:100;마진-상단:50px;마진-=100;너비=100;높이=100;배경-색상:#ff0000;z-index:1"></ div> <br><div id="layer2" onclick="javascript:change(this);" 스타일="위치:절대;마진-왼쪽:120;마진-상단:60px;마진-=120;너비=100;높이=100;배경-색상:#00ff00;z-색인:2"></ div> <br><div id="layer3" onclick="javascript:change(this);" 스타일="위치:절대;마진-왼쪽:140;마진-상단:70px;마진-=140;폭=100;높이=100;배경-색상:#0000ff;z-색인:3"></ div> <br><div id="layer4" onclick="javascript:change(this);" 스타일="위치:절대;마진-왼쪽:160;마진-상단:80px;마진-=160;너비=100;높이=100;배경-색상:#000000;z-색인:4"></ div><br> </div>