팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ) 정보
팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ)본문
아래는 현재 소스입니다....
<?
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>";
}
?>
<?
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>";
}
?>
댓글 전체
예전에는 가능했지만 IE7이상에서 자바스크립트로는 할 수 없습니다
인터넷옵션에서 주소, 상태표시줄 없애기 설정을 해주어야 합니다
인터넷옵션에서 주소, 상태표시줄 없애기 설정을 해주어야 합니다