테스트 사이트 - 개발 중인 베타 버전입니다

iframe 메인 페이지 전환 채택완료

Developerzasfsdfsd 7년 전 조회 3,104

안녕하세요.

 

아래와 같이 iframe을 활용하여 헤더 및 푸터를 만들었는데, top.php 링크값을 누르면 

iframe 자체내에서 넘어가더라구요... 당연히 자체 페이지가 바껴야 합니다.

 

혹시 좋은 방안이 있는지요?  아니면 php로  헤더와 푸터를 바꾸는 오픈소스를 구할수 있을까요?

 

<!-------------[[상단 로고/카페고리1]]------------->
<TD WIDTH='100%'  HEIGHT='105'  ALIGN='CENTER'  VALIGN='TOP'>
<iframe src="../iframe/top.php" name='top' width='100%' HEIGHT='105'  frameborder='0' marginwidth='0' marginheight='0' scrolling='no'>
</iframe>
</TD>


 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
7년 전

링크 태그에 target="_top" (또는 target="_parent")

을 추가해주면 될 듯 합니다.

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 4개

D
Developerzasfsdfsd
7년 전
<iframe src="../iframe/top.php" name='top' target="_parent" width='100%' HEIGHT='105' frameborder='0' marginwidth='0' marginheight='0' scrolling='no'>
</iframe>


안되는데요????
D
Developerzasfsdfsd
7년 전
<iframe src="../iframe/top.php" name='top' target="_parent" width='100%' HEIGHT='105' frameborder='0' marginwidth='0' marginheight='0' scrolling='no'>
</iframe>


안되는데요????
트샷
7년 전
iframe 태그 내가 아닌, a 태그(링크 태그) 내에 추가입니다.

<iframe ~>
<a href="top.php" target="_top">탑으로</a>
</iframe>

입니다.
D
Developerzasfsdfsd
7년 전
<iframe name='top' width='100%' HEIGHT='105' frameborder='0' marginwidth='0' marginheight='0' scrolling='no'> <a href="../iframe/top.php" target="_top">탑으로</a>
</iframe>

아예 아무것도 안뜨는데요????

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인