|
 홈페이지 |
21년 전 |
<head>와 </head> 사이에 아래 소스를 넣어주세요.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
closetime = 5; // Close window after __ number of seconds?
// 위에서 5가 닫히는 시간입니다.만약 0을 쓴다면 창을 닫히지 않습니다.
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=250,top=100,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "dawebplus.htm"; //새창으로 열릴 페이지
width = 350; // 새창의 가로 크기
height = 200; // 새창의 세로크기
delay = 2; // 새창이 뜨는 시간
timer = setTimeout("Start(url, width, height)", delay*1000);
}
// End -->
</script>
<body>안에 OnLoad="doPopup();" 넣어 주시면 됩니다.
<body OnLoad="doPopup();"> |
|
추천 : 570 |
추천
목록
|
|