팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ)

· 2013-02-27 (수) 12:35:39 · 4860 · 1
아래는 현재 소스입니다....




<?
ob_start();
///팝업테이블명
include_once("$g4[path]/popup_setup.php");




if(!$member[mb_level] || $member[mb_level]=="1"){///회원이 아닌경우[손님]


$sql="select * from {$popup_table} where check_use='Y' and (level=0 or level=1)";

$result=@mysql_query($sql,$connect_db);

echo "<script language=\"javascript\">";

for($i=0;$row=mysql_fetch_array($result);$i++)
{
$no=$row[no];

if($row[menubar]=="Y"){ $menubar="yes";}else{ $menubar="no";}
if($row[toolbar]=="Y"){ $toolbar="yes";}else{ $toolbar="no";}
if($row[scrollbars]=="Y"){ $scrollbars="yes";}else{ $scrollbars="no";}
if($row[resizable]=="Y"){ $resizable="yes";}else{ $resizable="no";}
if($row[status]=="Y"){ $status="yes";}else{ $status="no";}


//----이미지파일을 너비/높이로.변경....
if($row[check_input]=="TEXT" && $row[back_ground]){

$size=GetImageSize($_zb_path."popup_images/".$row[back_ground]);
$width=$size[0];
$height=$size[1] + 30;
}else if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($_zb_path."popup_images/".$row[img_file]);
$width=$size[0];
$height=$size[1] + 30;
}else{
$width=$row[width];
$height=$row[height]+30;

}



$center=$row[center];

if($center!="Y"){
$popup_left=$row[popup_left];
$popup_top=$row[popup_top];

$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left=$popup_left,top=$popup_top";

}else{?>

var left_pos,top_pos;

left_pos=(screen.width-<?=$width?>)/2;
top_pos=(screen.height-<?=$height?>)/2;


<?
$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left='+left_pos+',top='+top_pos+'";
}//중앙정렬인경우의 끝


if(!$cookie[$no])
{echo "window.open('".$g4[url]."/popup_view.php?no=$no','new_win$i','$option');"; }

}

echo "</script>";
}else{//회원인경우--------------


$sql="select * from {$popup_table} where check_use='Y' and (level=0 or level={$member[mb_level]})";

$result=mysql_query($sql,$connect_db);


echo "<script language=\"javascript\">";

for($i=0;$row=mysql_fetch_array($result);$i++)
{


$no=$row[no];

if($row[menubar]=="Y"){ $menubar="yes";}else{ $menubar="no";}
if($row[toolbar]=="Y"){ $toolbar="yes";}else{ $toolbar="no";}
if($row[scrollbars]=="Y"){ $scrollbars="yes";}else{ $scrollbars="no";}
if($row[resizable]=="Y"){ $resizable="yes";}else{ $resizable="no";}
if($row[status]=="Y"){ $status="yes";}else{ $status="no";}



//----이미지파일을 너비/높이로.변경....
if($row[check_input]=="TEXT" && $row[back_ground]){

$size=GetImageSize($_zb_path."popup_images/".$row[back_ground]);
$width=$size[0];
$height=$size[1] + 30;
}else if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($_zb_path."popup_images/".$row[img_file]);
$width=$size[0];
$height=$size[1] + 30;
}else{
$width=$row[width];
$height=$row[height]+30;

}

$center=$row[center];

if($center!="Y"){
$popup_left=$row[popup_left];
$popup_top=$row[popup_top];

$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left=$popup_left,top=$popup_top";

}else{?>

var left_pos,top_pos;

left_pos=(screen.width-<?=$width?>)/2;
top_pos=(screen.height-<?=$height?>)/2;
<?
$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left='+left_pos+',top='+top_pos+'";
}


if(!$cookie[$no])
{echo "window.open('".$g4[url]."/popup_view.php?no=$no','new_win$i','$option');"; }


}

echo "</script>";

}
?>
|

댓글 1개

예전에는 가능했지만 IE7이상에서 자바스크립트로는 할 수 없습니다
인터넷옵션에서 주소, 상태표시줄 없애기 설정을 해주어야 합니다
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-02-27 조회 1,054
13-02-27 조회 1,082
13-02-27 조회 1,614
13-02-27 조회 1,598
13-02-27 조회 948
13-02-27 조회 1,037
13-02-27 조회 4,861
13-02-27 조회 1,579
13-02-27 조회 2,211
13-02-27 조회 864
13-02-27 조회 709
13-02-27 조회 1,057
13-02-27 조회 803
13-02-27 조회 1,704
13-02-27 조회 754
13-02-27 조회 802
13-02-27 조회 1,139
13-02-27 조회 1,152
13-02-27 조회 872
13-02-27 조회 1,649