일반 페이지에서 하단에 iframe을 만듭니다.
링크의 target을 iframe 이름으로 지정합니다.
링크의 href에 쓰인 파일은 Javascript로 parent의 element 값들을 수정합니다.
예를 들어서 다음 세 파일을 만들고 p.html을 부릅니다.
c.html============================
<html><body></body></html>
================================
p.html============================
<html><body>
hidden frame에서 form을 만들고
거기서 post한 후
script로 child frame에 데이터 수정하기
<a href=set.php target=aja >set</a>
<p style="border: 1px solid blue;height:20px;" id=content></p>
<iframe name=aja src=c.html height=10 width=300>
</body>
</html>
=================================
set.php============================
<html>
<head>
<script language=JavaScript>
parent.document.all.content.innerText="여기가 바뀌는 부분입니다.";
</script>
</html>
=================================<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
링크의 target을 iframe 이름으로 지정합니다.
링크의 href에 쓰인 파일은 Javascript로 parent의 element 값들을 수정합니다.
예를 들어서 다음 세 파일을 만들고 p.html을 부릅니다.
c.html============================
<html><body></body></html>
================================
p.html============================
<html><body>
hidden frame에서 form을 만들고
거기서 post한 후
script로 child frame에 데이터 수정하기
<a href=set.php target=aja >set</a>
<p style="border: 1px solid blue;height:20px;" id=content></p>
<iframe name=aja src=c.html height=10 width=300>
</body>
</html>
=================================
set.php============================
<html>
<head>
<script language=JavaScript>
parent.document.all.content.innerText="여기가 바뀌는 부분입니다.";
</script>
</html>
=================================<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4114 | |
| 29 |
아우겐나이스
|
21년 전 | 4492 | |
| 28 |
아우겐나이스
|
21년 전 | 3513 | |
| 27 | 21년 전 | 5897 | ||
| 26 | 21년 전 | 3174 | ||
| 25 | 21년 전 | 6150 | ||
| 24 | 18년 전 | 3707 | ||
| 23 | 21년 전 | 3701 | ||
| 22 | 21년 전 | 4289 | ||
| 21 | 21년 전 | 3881 | ||
| 20 | 21년 전 | 4289 | ||
| 19 | 21년 전 | 6734 | ||
| 18 | 21년 전 | 4784 | ||
| 17 | 21년 전 | 7028 | ||
| 16 | 21년 전 | 4225 | ||
| 15 | 21년 전 | 2686 | ||
| 14 | 21년 전 | 5019 | ||
| 13 | 21년 전 | 3445 | ||
| 12 |
Recluse
|
21년 전 | 3924 | |
| 11 |
아우겐나이스
|
21년 전 | 3607 | |
| 10 |
Recluse
|
21년 전 | 3446 | |
| 9 | 21년 전 | 4064 | ||
| 8 | 21년 전 | 5236 | ||
| 7 | 21년 전 | 4815 | ||
| 6 | 21년 전 | 5760 | ||
| 5 | 21년 전 | 4168 | ||
| 4 | 21년 전 | 4904 | ||
| 3 | 21년 전 | 4791 | ||
| 2 | 21년 전 | 3294 | ||
| 1 | 22년 전 | 4386 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기