<!------------- 팝업창 내용 -------------->
<html>
<head>
<title>회원님들께 알립니다.</title>
<link href="/edupen_style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<SCRIPT language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin()
{
setCookie( "Notice", "done" , 1);
self.close();
}
function go(){
opener.document.location.href="/sub/help/premiermember.asp";
self.close();
}
// -->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu='return false' onselectstart='return false' ondragstart='return false'>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="400" height="492" bgcolor="#ffffff" align="center" valign='top'>
<img src="팝어창에 들어갈 이미지 주소" width="400" height="492" border="0" usemap="#Map"><br>
</td>
<tr>
<td width="400" align="center" valign='top'>
<form name="form" style="margin:0;">
<input type=checkbox name="Notice" value="" onClick="closeWin();">
<font face='' size='2' color='#666666'>오늘 하루 동안 이 창을 열지 않습니다.</font>
<a href="#" onClick="javascript:window.closeWin();"></a>
</form>
</td>
</tr>
</table>
<map name="Map"><area shape="rect" coords="239,450,373,470" href="#" onclick="javascript:go();" target="">
</map></body>
</html>
<!-------- 메인에 들어갈 소스 --------------->
<script language="javascript">
<!--
function move_page(target_url)
{
location.href = "/sub/"+target_url;
}
function bannerOpen(target_url)
{
window.open(target_url);
}
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function 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 ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('여기에 팝업창 주소','notice','left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=515','0','0','0','0');
noticeWindow.opener = self;
}
<!-- 팝업 끝나는 부분 -->
//-->
</script>
</head>
'tag 태그' 카테고리의 다른 글
가로 스쿠롤바를 없애자 (0) | 2008.03.18 |
---|---|
프레임에 점선을 넣어보자 (0) | 2008.03.18 |
광고 팝업창 띄우기 (0) | 2008.03.17 |
홈페이지 대문을 작은 팝업창으로 만들기(싸이처럼) (0) | 2008.03.02 |
이미지 효과주기 (0) | 2007.12.30 |