묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
다시 물어볼께요~ 프레임 문제 -ㅁ-;;
2003.07.18 00:45
안녕하세요^^
포워딩 http://holy.xo.st ---> 원주소 : http://trinity.nasse.net/holy/holy.html
원주소로 들어가면~ 메뉴가 있습니다. Home, 중등부, 예배안내 등등
이 메뉴를 하나 클릭하면~ 두개의 화면이 바뀝니다.
channel 과 메뉴 밑에~ 메인화면이 바뀌게 됩니다
그러니깐! 메뉴를 누르면 두개의 화면이 바뀌게 됩니다
그런데 포워딩 주소로 들어갈 경우는
메뉴를 누르면 두개의 화면이 바껴야 하는데
channel만 바뀌고 메인 화면은 바뀌지가 않습니다 ㅠ_ㅜ
원주소로 들어가면~ 메뉴 누를때 정상적으로 링크가 둘다 바뀌는데~
포워딩 주소로 들어가면 메뉴 누르면 channel 만 바뀔뿐 다른건 바뀌지가 않습니다
도와주세요 ㅠㅜ
<?
$_zb_url = "http://trinity.nasse.net/bbs/";
$_zb_path = "/free/home/trinity/html/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v5.0">
<style type="text/css">
<!--
@font-face { font-family:TTche; src:url(http://trinity.nasse.net/WebFont/TTche.eot); }
-->
</style>
<title>동은교회 중등부</title>
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
parent[fname1].location.href = url1;
parent[fname2].location.href = url2;
}
// -->
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="20" marginheight="20">
<TABLE cellSpacing=0 cellPadding=0 width="847" align=center border=0>
<TBODY>
<TR>
<TD width=15 height="12">
<P><font size="1"><IMG height="21" src="img/1.gif" width=15
border=0></font></P></TD>
<TD width="816" background="img/11.gif" colSpan=2 height="12">
<P style="LINE-HEIGHT: 20px" align=left> </P></TD>
<TD width="16" height="12">
<P><font size="1"><IMG height="21" src="img/2.gif" width="15"
border=0></font></P></TD></TR>
<TR>
<TD width=15 background="img/22.gif" height="545" rowSpan="5">
<P><font size="1"> </font></P></TD>
<TD width="816" colSpan=2>
<P align=center></P></TD>
<TD width="16" background="img/33.gif" height="545" rowSpan="5">
<P><font size="1"> </font></P></TD></TR>
<TR>
<TD width="816" colSpan=2 height="90">
<TABLE cellSpacing=0 cellPadding=0 width="812" align=center border=0>
<TBODY>
<TR>
<TD width="270" height="82" rowSpan=2>
<P align="left"><font color="#DEDFDE"><img src="img/main_logo.gif" border="0" width="206" height="79"></font></P></TD>
<TD width="542">
<P align=center> <IFRAME marginWidth=0 marginHeight=0
src="praise.html" frameBorder=0
width="557" scrolling="no" height="20" topmargin="0"
leftmargin="0" name="praise"></IFRAME></P></TD></TR>
<TR>
<TD width="542" height="30">
<p align="center"><a OnClick="na_two_frame('ch', 'menu/channel.html', 'down', 'down.html');" href="menu/channel.html" target="ch"><img src="img/m_home.gif" width="55" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/holy.html', 'down', 'holy/holy_intro.htm');" href="menu/holy.html" target="ch"><img src="img/m_holy.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/worship.html', 'down', 'worship/worship.html');" href="menu/worship.html" target="ch"><img src="img/m_worship.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/ministry.html', 'down', 'ministry/ministry.html');" href="menu/ministry.html" target="ch"><img src="img/m_ministry.gif" width="56" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/photo.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=j_photo1');" href="menu/photo.html" target="ch"><img src="img/m_photo.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/board.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=j_freeboard');" href="menu/board.html" target="ch"><img src="img/m_board.gif" width="55" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/pds.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=pds');" href="menu/pds.html" target="ch"><img src="img/m_pds.gif" width="55" height="31" border="0"></a></p>
</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top width="180" height="288">
<TABLE cellSpacing=0 cellPadding=0 width=160 align=center border=0>
<TBODY>
<TR>
<TD width=160 colSpan=3 height=18>
<P align=left><font size="1"><IMG height=19 src="img/up.gif" width=160
border=0></font></P></TD></TR>
<TR>
<TD width=15 background="img/left.gif" height=101>
<P> </P></TD>
<TD width=130 height=101>
<table align="center" border="1" cellspacing="0" width="123" bordercolordark="white" bordercolorlight="#CCCCCC" style="line-height:100%; margin-top:0; margin-bottom:0;">
<tr>
<td width="115" height="18" bgcolor="#E9E9E9" style="margin:0; padding:2;"><div id="box1">
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="TTche" color="#666666"><span style="font-size:9pt;">Channel</span></font></p>
</div>
</td>
</tr>
<tr>
<td width="117" height="120" bordercolordark="white" bordercolorlight="silver">
<P align="center"><IFRAME marginWidth=0 marginHeight=0
src="menu/channel.html" frameBorder=0
width="114" scrolling="no" height="120" topmargin="0"
leftmargin="0" name="ch"></IFRAME></P> </td>
</tr>
</table>
<p style="line-height:50%; margin-top:0; margin-bottom:0;"> </p>
<table align="center" border="1" cellspacing="0" width="123" bordercolordark="white" bordercolorlight="#CCCCCC" style="line-height:100%; margin-top:0; margin-bottom:0;">
<tr>
<td width="117" height="86" bordercolordark="white" bordercolorlight="silver">
<p align="center"><? print_outlogin("uZineOL_plastic", 2, 10) ?> </td>
</tr>
</table>
</TD>
<TD width=15 background="img/right.gif" height=101>
<P></P></TD></TR>
<TR>
<TD width=160 colSpan=3 height=20>
<P align=left><font size="1"><IMG height=22 src="img/down.gif" width=160
border=0></font></P></TD></TR></TBODY></TABLE>
</TD>
<TD vAlign=top width="636" rowspan="2" height="440">
<div align="right">
<table cellpadding="0" cellspacing="0" width="635">
<tr>
<td width="635" height="449"><P align="center"><IFRAME marginWidth=0 marginHeight=0
src="down.html" frameBorder=0
width="635" scrolling="auto" height="448" topmargin="0"
leftmargin="0" name="down"></IFRAME></P></td>
</tr>
</table>
</div>
</TD></TR>
<TR>
<TD vAlign=top width="180" height="152">
<table cellpadding="0" cellspacing="0" width="141" height="125" align="center">
<tr>
<td width="141" height="160"> <P align="center"> <IFRAME marginWidth=0 marginHeight=0
src="http://trinity.nasse.net/bbs/j_loginmem/pink_loged.php" frameBorder=0
width="140" scrolling="auto" height="160" topmargin="0"
leftmargin="0" name="llkorgll"></IFRAME></P> </td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD vAlign=top width="816" height="13" colspan="2">
<P align=center><FONT face="굴림" size="2" color="#666666">Copyright 2003</FONT><font size="2" face="굴림" color="#666666"> ⓒ
"WPUM WebDesign"
</font><FONT face="굴림" size="2" color="#666666">All Rights Reserved</FONT>
</P></TD>
</TR>
<TR>
<TD width=15 height=7>
<P><font size="1"><IMG height=15 src="img/3.gif" width=15
border=0></font></P></TD>
<TD width="816" background="img/44.gif" colSpan=2 height=7>
<P><font size="1"> </font></P></TD>
<TD width="16" height=7>
<P><font size="1"><IMG height=15 src="img/4.gif" width=15
border=0></font></P></TD></TR>
</TBODY></TABLE>
</body>
</html>
참고로 제 소스입니다
버찌소년이란 분이
헤더부분의 자바스크립트 중
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
parent[fname1].location.href = url1;
parent[fname2].location.href = url2;
}
// -->
</script>
이 부분을
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
frames[fname1].location.href = url1;
frames[fname2].location.href = url2;
}
// -->
</script>
이렇게 수정하시면 되겠습니다.
그 이유는, http://holy.xo.st의 프레임 안에,
http://trinity.nasse.net/holy/holy.html 안에
프레임이 또 있기 때문입니다.
그런데, parent는 최상위 프레임을 말하기 때문에,
http://holy.xo.st 에서 작동되지 않는 것입니다.
이렇게 가르쳐 주셔서 고쳐봤습니다
고친 사이트 주소: http://trinity.nasse.net/holy/index.html --> 에러 납니다
도와주세요ㅠ_ㅜ
포워딩 http://holy.xo.st ---> 원주소 : http://trinity.nasse.net/holy/holy.html
원주소로 들어가면~ 메뉴가 있습니다. Home, 중등부, 예배안내 등등
이 메뉴를 하나 클릭하면~ 두개의 화면이 바뀝니다.
channel 과 메뉴 밑에~ 메인화면이 바뀌게 됩니다
그러니깐! 메뉴를 누르면 두개의 화면이 바뀌게 됩니다
그런데 포워딩 주소로 들어갈 경우는
메뉴를 누르면 두개의 화면이 바껴야 하는데
channel만 바뀌고 메인 화면은 바뀌지가 않습니다 ㅠ_ㅜ
원주소로 들어가면~ 메뉴 누를때 정상적으로 링크가 둘다 바뀌는데~
포워딩 주소로 들어가면 메뉴 누르면 channel 만 바뀔뿐 다른건 바뀌지가 않습니다
도와주세요 ㅠㅜ
<?
$_zb_url = "http://trinity.nasse.net/bbs/";
$_zb_path = "/free/home/trinity/html/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v5.0">
<style type="text/css">
<!--
@font-face { font-family:TTche; src:url(http://trinity.nasse.net/WebFont/TTche.eot); }
-->
</style>
<title>동은교회 중등부</title>
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
parent[fname1].location.href = url1;
parent[fname2].location.href = url2;
}
// -->
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="20" marginheight="20">
<TABLE cellSpacing=0 cellPadding=0 width="847" align=center border=0>
<TBODY>
<TR>
<TD width=15 height="12">
<P><font size="1"><IMG height="21" src="img/1.gif" width=15
border=0></font></P></TD>
<TD width="816" background="img/11.gif" colSpan=2 height="12">
<P style="LINE-HEIGHT: 20px" align=left> </P></TD>
<TD width="16" height="12">
<P><font size="1"><IMG height="21" src="img/2.gif" width="15"
border=0></font></P></TD></TR>
<TR>
<TD width=15 background="img/22.gif" height="545" rowSpan="5">
<P><font size="1"> </font></P></TD>
<TD width="816" colSpan=2>
<P align=center></P></TD>
<TD width="16" background="img/33.gif" height="545" rowSpan="5">
<P><font size="1"> </font></P></TD></TR>
<TR>
<TD width="816" colSpan=2 height="90">
<TABLE cellSpacing=0 cellPadding=0 width="812" align=center border=0>
<TBODY>
<TR>
<TD width="270" height="82" rowSpan=2>
<P align="left"><font color="#DEDFDE"><img src="img/main_logo.gif" border="0" width="206" height="79"></font></P></TD>
<TD width="542">
<P align=center> <IFRAME marginWidth=0 marginHeight=0
src="praise.html" frameBorder=0
width="557" scrolling="no" height="20" topmargin="0"
leftmargin="0" name="praise"></IFRAME></P></TD></TR>
<TR>
<TD width="542" height="30">
<p align="center"><a OnClick="na_two_frame('ch', 'menu/channel.html', 'down', 'down.html');" href="menu/channel.html" target="ch"><img src="img/m_home.gif" width="55" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/holy.html', 'down', 'holy/holy_intro.htm');" href="menu/holy.html" target="ch"><img src="img/m_holy.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/worship.html', 'down', 'worship/worship.html');" href="menu/worship.html" target="ch"><img src="img/m_worship.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/ministry.html', 'down', 'ministry/ministry.html');" href="menu/ministry.html" target="ch"><img src="img/m_ministry.gif" width="56" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/photo.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=j_photo1');" href="menu/photo.html" target="ch"><img src="img/m_photo.gif" width="59" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/board.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=j_freeboard');" href="menu/board.html" target="ch"><img src="img/m_board.gif" width="55" height="31" border="0"></a>
<a OnClick="na_two_frame('ch', 'menu/pds.html', 'down', 'http://trinity.nasse.net/bbs/zboard.php?id=pds');" href="menu/pds.html" target="ch"><img src="img/m_pds.gif" width="55" height="31" border="0"></a></p>
</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top width="180" height="288">
<TABLE cellSpacing=0 cellPadding=0 width=160 align=center border=0>
<TBODY>
<TR>
<TD width=160 colSpan=3 height=18>
<P align=left><font size="1"><IMG height=19 src="img/up.gif" width=160
border=0></font></P></TD></TR>
<TR>
<TD width=15 background="img/left.gif" height=101>
<P> </P></TD>
<TD width=130 height=101>
<table align="center" border="1" cellspacing="0" width="123" bordercolordark="white" bordercolorlight="#CCCCCC" style="line-height:100%; margin-top:0; margin-bottom:0;">
<tr>
<td width="115" height="18" bgcolor="#E9E9E9" style="margin:0; padding:2;"><div id="box1">
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="TTche" color="#666666"><span style="font-size:9pt;">Channel</span></font></p>
</div>
</td>
</tr>
<tr>
<td width="117" height="120" bordercolordark="white" bordercolorlight="silver">
<P align="center"><IFRAME marginWidth=0 marginHeight=0
src="menu/channel.html" frameBorder=0
width="114" scrolling="no" height="120" topmargin="0"
leftmargin="0" name="ch"></IFRAME></P> </td>
</tr>
</table>
<p style="line-height:50%; margin-top:0; margin-bottom:0;"> </p>
<table align="center" border="1" cellspacing="0" width="123" bordercolordark="white" bordercolorlight="#CCCCCC" style="line-height:100%; margin-top:0; margin-bottom:0;">
<tr>
<td width="117" height="86" bordercolordark="white" bordercolorlight="silver">
<p align="center"><? print_outlogin("uZineOL_plastic", 2, 10) ?> </td>
</tr>
</table>
</TD>
<TD width=15 background="img/right.gif" height=101>
<P></P></TD></TR>
<TR>
<TD width=160 colSpan=3 height=20>
<P align=left><font size="1"><IMG height=22 src="img/down.gif" width=160
border=0></font></P></TD></TR></TBODY></TABLE>
</TD>
<TD vAlign=top width="636" rowspan="2" height="440">
<div align="right">
<table cellpadding="0" cellspacing="0" width="635">
<tr>
<td width="635" height="449"><P align="center"><IFRAME marginWidth=0 marginHeight=0
src="down.html" frameBorder=0
width="635" scrolling="auto" height="448" topmargin="0"
leftmargin="0" name="down"></IFRAME></P></td>
</tr>
</table>
</div>
</TD></TR>
<TR>
<TD vAlign=top width="180" height="152">
<table cellpadding="0" cellspacing="0" width="141" height="125" align="center">
<tr>
<td width="141" height="160"> <P align="center"> <IFRAME marginWidth=0 marginHeight=0
src="http://trinity.nasse.net/bbs/j_loginmem/pink_loged.php" frameBorder=0
width="140" scrolling="auto" height="160" topmargin="0"
leftmargin="0" name="llkorgll"></IFRAME></P> </td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD vAlign=top width="816" height="13" colspan="2">
<P align=center><FONT face="굴림" size="2" color="#666666">Copyright 2003</FONT><font size="2" face="굴림" color="#666666"> ⓒ
"WPUM WebDesign"
</font><FONT face="굴림" size="2" color="#666666">All Rights Reserved</FONT>
</P></TD>
</TR>
<TR>
<TD width=15 height=7>
<P><font size="1"><IMG height=15 src="img/3.gif" width=15
border=0></font></P></TD>
<TD width="816" background="img/44.gif" colSpan=2 height=7>
<P><font size="1"> </font></P></TD>
<TD width="16" height=7>
<P><font size="1"><IMG height=15 src="img/4.gif" width=15
border=0></font></P></TD></TR>
</TBODY></TABLE>
</body>
</html>
참고로 제 소스입니다
버찌소년이란 분이
헤더부분의 자바스크립트 중
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
parent[fname1].location.href = url1;
parent[fname2].location.href = url2;
}
// -->
</script>
이 부분을
<script language="JavaScript">
<!--
function na_two_frame(fname1, url1, fname2, url2)
{
frames[fname1].location.href = url1;
frames[fname2].location.href = url2;
}
// -->
</script>
이렇게 수정하시면 되겠습니다.
그 이유는, http://holy.xo.st의 프레임 안에,
http://trinity.nasse.net/holy/holy.html 안에
프레임이 또 있기 때문입니다.
그런데, parent는 최상위 프레임을 말하기 때문에,
http://holy.xo.st 에서 작동되지 않는 것입니다.
이렇게 가르쳐 주셔서 고쳐봤습니다
고친 사이트 주소: http://trinity.nasse.net/holy/index.html --> 에러 납니다
도와주세요ㅠ_ㅜ
해당 스크립트를 아래와 같이 바꿔버리세요... (바꾸기만 하시면 됩니다;)
<script>
<!--
function na_two_frame(fname1, url1, fname2, url2) {
window.open(url1, fname1,'');
window.open(url2, fname2,'');
}
//-->
</script>
한마디로 편법이죠-_-; 원래 window.open(); 은 새창 여는 건데;; 타겟을 잘만 주면 링크거는것 같다는-_-;;