소셜로그인 중단 안내

계정으로 로그인 기능이 2023년 11월 16일 중단되었습니다.

아이보스 계정이 사라지는 것은 절대 아니며, 계정의 이메일 주소를 이용해 로그인 하실 수 있습니다.

▶️ 자세한 공지사항 확인

메인화면에 레이어로 팝업만드는 방법

2007.01.11 16:09

정광선

조회수 7,141

댓글 8

아래소스를 사용하여 새창이 아닌 메인창에 팝업을 띄우는 소스입니다.
인터넷창에 팝업차단이 되있으면 팝업이 안뜨지만 이 소스를 사용하면 팝업창 창단이 되어있어도 창이 뜨게 되는거죠 ^^;;

적용 예) http://www.global0515.co.kr/


<head>
<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() {
if ( document.notice_form.chkbox.checked ){
setCookie( "maindiv", "done" , 1 );
}
document.all['divpop'].style.visibility = "hidden";
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<!-- POPUP -->
<div id="divpop" style="position:absolute;left:395px;top:190;z-index:200;visibility:hidden;">
<table width=300 height=400 cellpadding=2 cellspacing=0>
<tr>
<td style="border:1px #666666 solid" height=360 align=center bgcolor=white>
여기에 내용 삽입
</td>
</tr>
<tr>
<form name="notice_form">
<td align=right bgcolor=white>
<input type="checkbox" name="chkbox" value="checkbox">오늘 하루 이 창을 열지 않음
<a href="javascript:closeWin();"><B>[닫기]</B></a>
</td>
</tr>
</form>
</table>
</div>

<script language="Javascript">
cookiedata = document.cookie;
if ( cookiedata.indexOf("maindiv=done") < 0 ){
document.all['divpop'].style.visibility = "visible";
}
else {
document.all['divpop'].style.visibility = "hidden";
}
</script>
목록
댓글 8
댓글 새로고침

제노

01.254,4672

못난이

01.254,0020

장권철

01.235,7011

장권철

01.235,322149

알짬

01.224,6621

알짬

01.194,5401

야호

01.194,3900

노희석

01.164,5620

유창화

01.163,6310

글벗

01.164,5320

장권철

01.154,480131

알짬

01.153,9991

알짬

01.153,6301

못난이

01.143,9970

알짬

01.114,13189

정광선

01.117,141150

정광선

01.114,4252

알짬

01.103,81790

유창화

01.104,4785

알짬

01.094,136103
목록
로그인 후 더욱 많은 기능을 이용하세요!아이보스 로그인
아이보스 칼럼전체보기