c

사이트 열리자마자 팝업창을 뜨게 하려는데요

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

클릭해서 새창으로 뜨게하는팝업도 만들었었는데...
마찬가지로 하면 될거라생각햇는데 머가 잘못됬는지 이상하게뜨네여....

소스는 이미만들어두엇구요
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/팝업창.jpg')">
<table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/팝업창.jpg" width="250" height="320" /></td>
</tr>
<tr>
<td><div align="center" onclick="MM_callJS('window.close()')"><a href="#">[닫기]</a></div></td>
</tr>
</table>

</body>
</html>

맞나요??

그리고 제 index.html에는
바디가 선언되어잇지가 않습니다

바디안에 넣어야하는걸로 알고 잇는데... 소스를 어디에 적용 시켜야하는지좀 자세히
알려주실분 계신가요 /.? ㅠ,ㅠ

정말 어렵지않은건데 제가 정확히 모르고 있는거 같아요 ㅠㅠ 도와주세용
|

댓글 2개

일반 팝업
<script>window.open("띄우려는 주소");</script>

크기설정 팝업
<script>window.open("띄우려는 주소","pop","width=가로크기,height=세로크기,scrollbars=auto");</script>
음..................메인화면 어디에 넣는지를 여쭤본건데요:;
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 845
12년 전 조회 806
12년 전 조회 807
12년 전 조회 2,616
12년 전 조회 922
12년 전 조회 874
12년 전 조회 3,871
12년 전 조회 751
12년 전 조회 1,620
12년 전 조회 1,120
12년 전 조회 1,660
12년 전 조회 2,430
12년 전 조회 1,656
12년 전 조회 2,299
12년 전 조회 1,585
12년 전 조회 2,664
12년 전 조회 1,495
12년 전 조회 1,657
12년 전 조회 1,691
12년 전 조회 834