레벨3이상만 새창을 볼 수 있게 하려면? 정보
레벨3이상만 새창을 볼 수 있게 하려면?
본문
로그인 후 레벨3이상만 새창을 볼수 있게 하려는데...수정사항을 알려주시기 바랍니다..^^;;
------------------------------------------------------------------------------------------
<script language="JavaScript">
<!-- JavaScript
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( "Notice" ) != "done" )
{
window.open('notice.html','','width=500,height=500'); // 팝업윈도우의 경로와 크기를 설정 하세요
}
// - JavaScript - -->
</script>
------------------------------------------------------------------------------------------
<script language="JavaScript">
<!-- JavaScript
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( "Notice" ) != "done" )
{
window.open('notice.html','','width=500,height=500'); // 팝업윈도우의 경로와 크기를 설정 하세요
}
// - JavaScript - -->
</script>
댓글 전체
새창을 어떻게 호출하셨나요?
새창이름이 /abcd.php 라 하고, 그누보드3가 설치된 디렉토리에 있다면 다음처럼 호출해보세요.
/?doc=abcd.php
새창이름이 /abcd.php 라 하고, 그누보드3가 설치된 디렉토리에 있다면 다음처럼 호출해보세요.
/?doc=abcd.php

^^;;
앗..루트님...감사합니다....
그런데...새창에 <? include "./bbs/vote.php"; ?>처럼 인쿠르드 시켰는데.... 창은 뜨는데...내용출력이 안되고 흰백으로 출력되네요... 왜 그렇죠?....
앗..루트님...감사합니다....
그런데...새창에 <? include "./bbs/vote.php"; ?>처럼 인쿠르드 시켰는데.... 창은 뜨는데...내용출력이 안되고 흰백으로 출력되네요... 왜 그렇죠?....
소스에서 레벨이 2보다 크면 위의 스크립터 소스가 보이도록 하면 되겠군요
<? if($member[mb_level] > 2) { ?>
<script language="JavaScript">
<!-- JavaScript
....// 위의 스크립터 중간 생략 //....
// - JavaScript - -->
</script>
<? } ?>
<? if($member[mb_level] > 2) { ?>
<script language="JavaScript">
<!-- JavaScript
....// 위의 스크립터 중간 생략 //....
// - JavaScript - -->
</script>
<? } ?>