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,924
18년 전 조회 2,570
18년 전 조회 3,479
18년 전 조회 3,401
18년 전 조회 3,573
18년 전 조회 3,490
18년 전 조회 5,156
18년 전 조회 5,444
18년 전 조회 3,652
18년 전 조회 2,947
18년 전 조회 3,190
18년 전 조회 2,524
18년 전 조회 2,317
18년 전 조회 2,268
18년 전 조회 3,302
18년 전 조회 2,570
18년 전 조회 2,608
18년 전 조회 2,290
18년 전 조회 2,652
18년 전 조회 3,405
18년 전 조회 4,355
18년 전 조회 3,598
18년 전 조회 2,269
18년 전 조회 2,214
18년 전 조회 3,103
18년 전 조회 1,906
18년 전 조회 2,258
18년 전 조회 2,536
18년 전 조회 2,421
18년 전 조회 2,516
18년 전 조회 4,266
18년 전 조회 2,048
18년 전 조회 4,611
18년 전 조회 3,176
18년 전 조회 2,484
18년 전 조회 3,517
18년 전 조회 3,153
18년 전 조회 3,079
18년 전 조회 5,872
18년 전 조회 2,527
18년 전 조회 3,668
18년 전 조회 3,568
18년 전 조회 3,951
18년 전 조회 3,506
18년 전 조회 2,690
18년 전 조회 2,360
18년 전 조회 2,784
18년 전 조회 6,349
18년 전 조회 2,995
18년 전 조회 4,802
18년 전 조회 2,277
18년 전 조회 1만
18년 전 조회 2,728
18년 전 조회 1,806
18년 전 조회 3,231
18년 전 조회 3,172
18년 전 조회 3,067
18년 전 조회 2,382
18년 전 조회 2,565
18년 전 조회 3,112
18년 전 조회 3,199
18년 전 조회 4,374
18년 전 조회 6,355
18년 전 조회 2,309
18년 전 조회 2,424
18년 전 조회 2,120
18년 전 조회 1,870
18년 전 조회 2,861
18년 전 조회 1,900
18년 전 조회 1,782
18년 전 조회 4,974
18년 전 조회 2,024
18년 전 조회 2,069
18년 전 조회 2,072
18년 전 조회 2,204
18년 전 조회 3,860
18년 전 조회 1,884
18년 전 조회 1,760
18년 전 조회 1,580
18년 전 조회 2,079
18년 전 조회 2,123
18년 전 조회 3,894
18년 전 조회 2,220
18년 전 조회 3,373
18년 전 조회 4,985
18년 전 조회 3,117
18년 전 조회 8,279
18년 전 조회 4,298
18년 전 조회 2,995
18년 전 조회 1,777
18년 전 조회 2,870
18년 전 조회 5,280
18년 전 조회 5,450
18년 전 조회 2,321
18년 전 조회 4,582
18년 전 조회 4,340
18년 전 조회 4,381
18년 전 조회 2,516
18년 전 조회 4,429
18년 전 조회 2,415