팝업을 띄우기 도와주세요 ㅠㅠ 정보
팝업을 띄우기 도와주세요 ㅠㅠ본문
이전의 소스는 있는데 머가 문제인지 몰라도 팝업이 뜨질 않습니다.
경로가 잘못된것인지 설정값을 잘못준것인지 제가 답을 모르겠습니다.
한번 봐주시고 부탁드리겠습니다. (초보라서 잘모릅니다.부탁드려요)
-- index.html --
<html>
<head>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
</head>
<frameset rows="0,*" frameborder="no" border="0" framespacing="0">
<frame src='popup.html'
name="popup"
marginheight="0" marginwidth="0" noresize scrolling="auto" />
<frame src="web2/index.php"
name="main" noresize scrolling="auto" />
</frameset>
</html>
-- popup.html --
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function notice_getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
<?
if ( notice_getCookie( "event" ) != "done" )
{
na_open_window('popup_11.html','popup', 100, 0, 450, 600, 0, 0, 0, 1, 0);
} ?>
--!>
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" >
<p> </p>
</body>
</html>
-- popup_11.html --
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title></title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<link rel='stylesheet' href='/web/style.css' type='text/css'>
<SCRIPT LANGUAGE="JavaScript">
<!--
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.forms[0].Notice.checked )
notice_setCookie( "event", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
//-->
</SCRIPT>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" valign="bottom">
<form name="popup">
<tr><td bgcolor="#eeeeee" valign=top><div align="center" valign=top ><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<div id="cromer111" valign=top>
<input type="checkbox" name="Notice" OnClick="notice_closeWin()">
<span style='font-size:9pt'><font color="#9A0000">이 창을 다시 열지 않음 </font></span> <a href="javascript:history.onclick=closeWin()"><span style='font-size:9pt'><font color="#000000">[닫기]</a></font></span></b></div></td></tr>
</div>
</form>
</table>
</body>
</html>
위 3개의 파일이 관련이 있는것 같은데 안뜨는 이유가 뭔지를 잘 모르겠습니다.
도움부탁드립니다. ㅠㅠ
경로가 잘못된것인지 설정값을 잘못준것인지 제가 답을 모르겠습니다.
한번 봐주시고 부탁드리겠습니다. (초보라서 잘모릅니다.부탁드려요)
-- index.html --
<html>
<head>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
</head>
<frameset rows="0,*" frameborder="no" border="0" framespacing="0">
<frame src='popup.html'
name="popup"
marginheight="0" marginwidth="0" noresize scrolling="auto" />
<frame src="web2/index.php"
name="main" noresize scrolling="auto" />
</frameset>
</html>
-- popup.html --
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function notice_getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
<?
if ( notice_getCookie( "event" ) != "done" )
{
na_open_window('popup_11.html','popup', 100, 0, 450, 600, 0, 0, 0, 1, 0);
} ?>
--!>
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" >
<p> </p>
</body>
</html>
-- popup_11.html --
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title></title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<link rel='stylesheet' href='/web/style.css' type='text/css'>
<SCRIPT LANGUAGE="JavaScript">
<!--
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.forms[0].Notice.checked )
notice_setCookie( "event", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
//-->
</SCRIPT>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" valign="bottom">
<form name="popup">
<tr><td bgcolor="#eeeeee" valign=top><div align="center" valign=top ><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<div id="cromer111" valign=top>
<input type="checkbox" name="Notice" OnClick="notice_closeWin()">
<span style='font-size:9pt'><font color="#9A0000">이 창을 다시 열지 않음 </font></span> <a href="javascript:history.onclick=closeWin()"><span style='font-size:9pt'><font color="#000000">[닫기]</a></font></span></b></div></td></tr>
</div>
</form>
</table>
</body>
</html>
위 3개의 파일이 관련이 있는것 같은데 안뜨는 이유가 뭔지를 잘 모르겠습니다.
도움부탁드립니다. ㅠㅠ
댓글 전체
http://phpschool.com 에서 물어보세요.... ^^
ㄳ