새창 띄우기 사이즈 문의 정보
새창 띄우기 사이즈 문의
본문
<a href='{$view[link_href][$i]}' target=_blank>보기</a>
링크를 이렇게 새창으로 띄우는데요..여기서 새창사이즈 어떻게 지정하나요?
주소표시줄 안나오게요~~~
list.skin.php 에는 아래같이 넣으면 왜안뜰까요? view.skin.php 에는 뜨는데 말이죠...???
<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>보기</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>보기</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
이제 포인트도 얼마없네..ㅜㅜ
댓글 전체
님도 저와 똑같은걸 원하시는듯하네요.
저도 님처럼 클릭시 주소표시줄없는 작은창이뜨는걸 하고싶어서 질문하러들어왔습니다.
빨리답변됐으면 좋겠네요~~~~
아래것은 자바스크립트로 홈피 인덱스에서 자동으로 뜨게끔하는건데.(채택되려는게 아님)
사이즈조절이 되어있습니다. 어느정도 지식있으면 아래코드로 응용가능하실지것같아서 올립니다.
<script language="JavaScript">
<!--
var naver = "http://id.naver.com/nidlogin.login?id=아이디&pw=비번&url=";
var dic = "http://endic.naver.com/small_index.nhn";
var op = "width=405, height=600, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=yes, left=0, top=0";
window.open( naver + dic, "",op );
opener = self;
self.close();
//-->
</script>
저도 님처럼 클릭시 주소표시줄없는 작은창이뜨는걸 하고싶어서 질문하러들어왔습니다.
빨리답변됐으면 좋겠네요~~~~
아래것은 자바스크립트로 홈피 인덱스에서 자동으로 뜨게끔하는건데.(채택되려는게 아님)
사이즈조절이 되어있습니다. 어느정도 지식있으면 아래코드로 응용가능하실지것같아서 올립니다.
<script language="JavaScript">
<!--
var naver = "http://id.naver.com/nidlogin.login?id=아이디&pw=비번&url=";
var dic = "http://endic.naver.com/small_index.nhn";
var op = "width=405, height=600, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=yes, left=0, top=0";
window.open( naver + dic, "",op );
opener = self;
self.close();
//-->
</script>
<a href=\"javascript:popup_window('{$view[link_href][$i]}','popBoard','left=50, top=50, width=277, height=436, scrollbars=no')\">
괄호안 첫번째 링크주소, 두번째 창이름, 세번째 창이뜰 좌표 왼쪽, 오른쪽, 크기폭, 크기높이, 스크롤바 없음 예입니다.
스크롤바 자동으로 하려면 scrollbars=auto(페이지 내용 크기에 따라 스크롤바가 자동으로 생김) 있음으로 하려면 scrollbars=yes
괄호안 첫번째 링크주소, 두번째 창이름, 세번째 창이뜰 좌표 왼쪽, 오른쪽, 크기폭, 크기높이, 스크롤바 없음 예입니다.
스크롤바 자동으로 하려면 scrollbars=auto(페이지 내용 크기에 따라 스크롤바가 자동으로 생김) 있음으로 하려면 scrollbars=yes
<SCRIPT LANGUAGE='JavaScript'>
<!--
var win= null;
function Center_Window(img, w, h)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/3;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no,';
settings +='status=no';
win=window.open("","newWindow",settings);
win.document.open();
win.document.write ("<html><head><title>:: 이미지 보기 ::</head></title>");
win.document.write ("<body leftmargin=0 topmargin=0>");
win.document.write ("<img src='"+img+"' border=0 onclick='window.close();' style='cursor:hand' title='클릭하면 닫혀요'>");
win.document.write ("<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>");
win.document.write ("</body></html>");
win.document.close();
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</SCRIPT>
감사합니다..
이소스에 익스6 도구모음을 잠굴려고
win.document.write ("<head><META http-equiv="imagetoolbar" content="no"></head>");
이렇게 넣었는데 왜 오류가 날까요???
<!--
var win= null;
function Center_Window(img, w, h)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/3;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no,';
settings +='status=no';
win=window.open("","newWindow",settings);
win.document.open();
win.document.write ("<html><head><title>:: 이미지 보기 ::</head></title>");
win.document.write ("<body leftmargin=0 topmargin=0>");
win.document.write ("<img src='"+img+"' border=0 onclick='window.close();' style='cursor:hand' title='클릭하면 닫혀요'>");
win.document.write ("<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>");
win.document.write ("</body></html>");
win.document.close();
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</SCRIPT>
감사합니다..
이소스에 익스6 도구모음을 잠굴려고
win.document.write ("<head><META http-equiv="imagetoolbar" content="no"></head>");
이렇게 넣었는데 왜 오류가 날까요???
태그는 항상 열고 닫음을 맞춰야 합니다.
<html><head><title></title><meta></head><body></body></html>
처럼요.
그다음엔 쌍따옴표 안에는 홀따옴표가 와야합니다. 그렇지 않을 경우에는 \ 역슬레시를 붙여주고 사용해야합니다.
<SCRIPT LANGUAGE='JavaScript'>
<!--
var win= null;
function Center_Window(img, w, h)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/3;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no,';
settings +='status=no';
win=window.open("","newWindow",settings);
win.document.open();
win.document.write ("<html><head><title>:: 이미지 보기 ::</title><META http-equiv='imagetoolbar' content='no'></head>");
win.document.write ("<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>");
win.document.write ("<img src='"+img+"' border=0 onclick='window.close();' style='cursor:hand' title='클릭하면 닫혀요' leftmargin=0 topmargin=0>");
win.document.write ("</body></html>");
win.document.close();
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</SCRIPT>
이런식으로...
<html><head><title></title><meta></head><body></body></html>
처럼요.
그다음엔 쌍따옴표 안에는 홀따옴표가 와야합니다. 그렇지 않을 경우에는 \ 역슬레시를 붙여주고 사용해야합니다.
<SCRIPT LANGUAGE='JavaScript'>
<!--
var win= null;
function Center_Window(img, w, h)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/3;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no,';
settings +='status=no';
win=window.open("","newWindow",settings);
win.document.open();
win.document.write ("<html><head><title>:: 이미지 보기 ::</title><META http-equiv='imagetoolbar' content='no'></head>");
win.document.write ("<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>");
win.document.write ("<img src='"+img+"' border=0 onclick='window.close();' style='cursor:hand' title='클릭하면 닫혀요' leftmargin=0 topmargin=0>");
win.document.write ("</body></html>");
win.document.close();
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</SCRIPT>
이런식으로...