프로그래밍/스크립트
레이어 팝업 중앙 위치 샘플
두니
2013. 11. 5. 16:44
반응형
해당 DIV
id="AAA" style="position: absolute; top:150px; left:50%; width:500px; height:300px; margin: -150px 0 0 -250px; background-color:#333; display:none;"
컨트롤 버튼
a href="javascript:SetLayerView('AAA', 'block');"
컨트롤 Javascript
<script type="text/javascript">
function SetLayerView(divID, process){
document.getElementById(divID).style.display=process;
}