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,785
18년 전 조회 2,419
18년 전 조회 3,345
18년 전 조회 3,261
18년 전 조회 3,412
18년 전 조회 3,352
18년 전 조회 5,006
18년 전 조회 5,294
18년 전 조회 3,514
18년 전 조회 2,819
18년 전 조회 3,050
18년 전 조회 2,370
18년 전 조회 2,179
18년 전 조회 2,132
18년 전 조회 3,163
18년 전 조회 2,439
18년 전 조회 2,465
18년 전 조회 2,142
18년 전 조회 2,521
18년 전 조회 3,262
18년 전 조회 4,192
18년 전 조회 3,455
18년 전 조회 2,111
18년 전 조회 2,045
18년 전 조회 2,954
18년 전 조회 1,758
18년 전 조회 2,118
18년 전 조회 2,394
18년 전 조회 2,274
18년 전 조회 2,362
18년 전 조회 4,109
18년 전 조회 1,881
18년 전 조회 4,469
18년 전 조회 3,010
18년 전 조회 2,339
18년 전 조회 3,360
18년 전 조회 2,998
18년 전 조회 2,928
18년 전 조회 5,714
18년 전 조회 2,382
18년 전 조회 3,508
18년 전 조회 3,424
18년 전 조회 3,808
18년 전 조회 3,362
18년 전 조회 2,535
18년 전 조회 2,196
18년 전 조회 2,633
18년 전 조회 6,203
18년 전 조회 2,835
18년 전 조회 4,633
18년 전 조회 2,123
18년 전 조회 1만
18년 전 조회 2,579
18년 전 조회 1,640
18년 전 조회 3,073
18년 전 조회 3,024
18년 전 조회 2,905
18년 전 조회 2,231
18년 전 조회 2,416
18년 전 조회 2,966
18년 전 조회 3,059
18년 전 조회 4,220
18년 전 조회 6,212
18년 전 조회 2,159
18년 전 조회 2,276
18년 전 조회 1,974
18년 전 조회 1,736
18년 전 조회 2,723
18년 전 조회 1,767
18년 전 조회 1,639
18년 전 조회 4,817
18년 전 조회 1,868
18년 전 조회 1,916
18년 전 조회 1,918
18년 전 조회 2,052
18년 전 조회 3,719
18년 전 조회 1,728
18년 전 조회 1,608
18년 전 조회 1,442
18년 전 조회 1,937
18년 전 조회 1,982
18년 전 조회 3,743
18년 전 조회 2,071
18년 전 조회 3,209
18년 전 조회 4,832
18년 전 조회 2,963
18년 전 조회 8,136
18년 전 조회 4,141
18년 전 조회 2,832
18년 전 조회 1,614
18년 전 조회 2,721
18년 전 조회 5,118
18년 전 조회 5,299
18년 전 조회 2,171
18년 전 조회 4,441
18년 전 조회 4,184
18년 전 조회 4,240
18년 전 조회 2,358
18년 전 조회 4,273
18년 전 조회 2,271