y

외부문서불러오기

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script>
var please_wait = null;

function open_url(url, target) {
    if ( ! document.getElementById) {
          return false;
    }

    if (please_wait != null) {
          document.getElementById(target).innerHTML = please_wait;
    }

    if (window.ActiveXObject) {
          link = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
          link = new XMLHttpRequest();
    }

    if (link == undefined) {
          return false;
    }
    link.onreadystatechange = function() { response(url, target); }
    link.open("GET", url, true);
    link.send(null);
}

function response(url, target) {
    if (link.readyState == 4) {
         document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "링크가 정확하지 않습니다. 에러코드: " + link.status;
    }
}

function set_loading_message(msg) {
    please_wait = msg;
}

</script>
</head>
<body>

<table>
<tr>
<td valign=top width=150>
<H5>외부문서 불러오기</H5>
<a href="javascript:void(0)" onclick="open_url('http://www.blueb.co.kr/rss_xml.php?table=community_QNA','my_site_content');">Go to page 1</a><br>
<a href="javascript:void(0)" onclick="open_url('http://www.blueb.co.kr/rss_xml.php?table=community_tipntech','my_site_content');">Go to page 2</a><br>
<a href="javascript:void(0)" onclick="open_url('http://www.blueb.co.kr/rss_xml.php?table=JS_50','my_site_content');">Go to page 3</a><br>
<a href="javascript:void(0)" onclick="open_url('http://www.blueb.co.kr/rss_xml.php?table=JS_02','my_site_content');">Go to page 4</a><br>
<a href="javascript:void(0)" onclick="open_url('링크없다.html','my_site_content');">Broken Link</a><br>
</td>
<td valign=top>
<div id="my_site_content">
</div>
</td>
</tr>
</table>
 
 
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|

댓글 1개

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

프로그램

+
제목 글쓴이 날짜 조회
18년 전 조회 2,751
18년 전 조회 2,372
18년 전 조회 3,305
18년 전 조회 3,225
18년 전 조회 3,369
18년 전 조회 3,304
18년 전 조회 4,970
18년 전 조회 5,255
18년 전 조회 3,465
18년 전 조회 2,774
18년 전 조회 3,010
18년 전 조회 2,322
18년 전 조회 2,138
18년 전 조회 2,095
18년 전 조회 3,120
18년 전 조회 2,409
18년 전 조회 2,430
18년 전 조회 2,104
18년 전 조회 2,478
18년 전 조회 3,209
18년 전 조회 4,147
18년 전 조회 3,422
18년 전 조회 2,064
18년 전 조회 2,002
18년 전 조회 2,912
18년 전 조회 1,706
18년 전 조회 2,071
18년 전 조회 2,350
18년 전 조회 2,224
18년 전 조회 2,321
18년 전 조회 4,069
18년 전 조회 1,840
18년 전 조회 4,436
18년 전 조회 2,968
18년 전 조회 2,281
18년 전 조회 3,324
18년 전 조회 2,950
18년 전 조회 2,888
18년 전 조회 5,676
18년 전 조회 2,346
18년 전 조회 3,464
18년 전 조회 3,371
18년 전 조회 3,764
18년 전 조회 3,319
18년 전 조회 2,498
18년 전 조회 2,145
18년 전 조회 2,598
18년 전 조회 6,164
18년 전 조회 2,784
18년 전 조회 4,583
18년 전 조회 2,079
18년 전 조회 1만
18년 전 조회 2,534
18년 전 조회 1,600
18년 전 조회 3,034
18년 전 조회 2,976
18년 전 조회 2,868
18년 전 조회 2,188
18년 전 조회 2,370
18년 전 조회 2,919
18년 전 조회 3,004
18년 전 조회 4,179
18년 전 조회 6,162
18년 전 조회 2,107
18년 전 조회 2,230
18년 전 조회 1,939
18년 전 조회 1,691
18년 전 조회 2,675
18년 전 조회 1,723
18년 전 조회 1,600
18년 전 조회 4,782
18년 전 조회 1,827
18년 전 조회 1,882
18년 전 조회 1,888
18년 전 조회 2,005
18년 전 조회 3,673
18년 전 조회 1,688
18년 전 조회 1,571
18년 전 조회 1,403
18년 전 조회 1,902
18년 전 조회 1,943
18년 전 조회 3,700
18년 전 조회 2,022
18년 전 조회 3,159
18년 전 조회 4,790
18년 전 조회 2,921
18년 전 조회 8,087
18년 전 조회 4,101
18년 전 조회 2,793
18년 전 조회 1,572
18년 전 조회 2,673
18년 전 조회 5,083
18년 전 조회 5,261
18년 전 조회 2,137
18년 전 조회 4,394
18년 전 조회 4,142
18년 전 조회 4,200
18년 전 조회 2,317
18년 전 조회 4,238
18년 전 조회 2,225