팝업 가운데 띄우기
페이지 정보
작성자 LYJ 작성일11-09-13 13:36 조회16,817회 댓글0건본문
// 팝업 가운데 띄우기
function procedure() {
cw=screen.availWidth; //화면 넓이
ch=screen.availHeight; //화면 높이
sw=650; //띄울 창의 넓이
sh=650; //띄울 창의 높이
ml=(cw-sw)/2; //가운데 띄우기위한 창의 x위치
mt=(ch-sh)/2; //가운데 띄우기위한 창의 y위치
test=window.open('procedure.html','tst','width='+sw+',height='+sh+',top='+mt+',left='+ml+',resizable=no,scrollbars=yes');
}
댓글목록
등록된 댓글이 없습니다.