일반 페이지에서 하단에 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>
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 502 |
개발자관리자
|
19년 전 | 2667 | |
| 501 | 19년 전 | 1988 | ||
| 500 | 19년 전 | 3232 | ||
| 499 | 19년 전 | 3265 | ||
| 498 | 19년 전 | 2521 | ||
| 497 | 19년 전 | 2602 | ||
| 496 | 19년 전 | 2432 | ||
| 495 | 19년 전 | 2675 | ||
| 494 | 19년 전 | 2654 | ||
| 493 | 19년 전 | 3139 | ||
| 492 | 19년 전 | 2852 | ||
| 491 | 19년 전 | 5261 | ||
| 490 |
|
19년 전 | 2088 | |
| 489 |
|
19년 전 | 2170 | |
| 488 |
|
19년 전 | 1978 | |
| 487 |
|
19년 전 | 1906 | |
| 486 |
|
19년 전 | 1913 | |
| 485 |
|
19년 전 | 2116 | |
| 484 |
|
19년 전 | 3184 | |
| 483 |
|
19년 전 | 3063 | |
| 482 |
|
19년 전 | 2825 | |
| 481 |
|
19년 전 | 2549 | |
| 480 |
|
19년 전 | 2650 | |
| 479 |
|
19년 전 | 2322 | |
| 478 |
|
19년 전 | 2330 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기