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개

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

프로그램

8,188건
+
제목 글쓴이 날짜 조회
08-10-30 조회 2,701
08-10-30 조회 2,796
08-10-20 조회 2,529
08-10-11 조회 2,431
08-09-20 조회 4,176
08-09-20 조회 2,843
08-09-18 조회 2,721
08-09-18 조회 3,423
08-09-17 조회 3,290
08-09-05 조회 4,631
08-09-03 조회 2,756
08-08-18 조회 2,893
08-08-17 조회 2,631
08-08-13 조회 3,411
08-07-30 조회 3,473
08-07-28 조회 4,352
08-07-22 조회 5,583
08-07-22 조회 4,064
08-07-10 조회 3,034
08-07-08 조회 3,098
08-06-30 조회 3,859
08-06-30 조회 3,344
08-06-30 조회 3,658
08-06-14 조회 2,727
08-06-11 조회 7,090
08-06-05 조회 3,307
08-05-20 조회 4,821
08-05-13 조회 4,159
08-05-08 조회 3,115
08-05-08 조회 5,267
08-04-25 조회 4,065
08-04-22 조회 4,530
08-04-21 조회 3,168
08-04-17 조회 2,557
08-04-17 조회 2,954
08-04-17 조회 2,253
08-04-17 조회 5,223
08-04-17 조회 4,541
08-04-17 조회 4,533
08-04-17 조회 3,316
08-04-17 조회 3,146
08-04-17 조회 3,632
08-04-17 조회 4,993
08-04-17 조회 5,142
08-04-17 조회 3,349
08-04-04 조회 4,608
08-04-04 조회 2,833
08-04-04 조회 2,578
08-04-04 조회 2,808
08-04-04 조회 2,543
08-04-04 조회 2,782
08-04-03 조회 2,668
08-04-03 조회 2,736
08-04-02 조회 3,050
08-04-02 조회 3,201
08-03-31 조회 3,096
08-03-26 조회 4,272
08-03-11 조회 2,961
08-03-11 조회 2,372
08-03-11 조회 2,380
08-03-07 조회 4,214
08-03-07 조회 3,307
08-03-06 조회 4,758
08-03-04 조회 3,390
08-02-19 조회 3,786
08-02-03 조회 3,408
08-01-18 조회 3,992
08-01-15 조회 3,445
08-01-12 조회 4,293
08-01-12 조회 3,857
08-01-12 조회 3,810
07-12-24 조회 3,106
07-11-30 조회 3,942
07-11-08 조회 5,007
07-11-06 조회 3,858
07-10-26 조회 5,002
07-10-24 조회 4,188
07-10-22 조회 3,577
07-10-19 조회 4,755
07-10-09 조회 4,892
07-10-09 조회 6,756
07-10-05 조회 3,091
07-10-05 조회 4,026
07-10-03 조회 7,537
07-10-03 조회 3,582
07-10-03 조회 2,933
07-10-03 조회 2,855
07-09-28 조회 4,704
07-09-27 조회 3,767
07-09-27 조회 3,219
07-09-13 조회 3,367
07-08-28 조회 3,455
07-08-04 조회 4,840
07-08-01 조회 5,534
07-08-01 조회 4,941
07-07-30 조회 5,456
07-07-29 조회 3,603
07-07-21 조회 3,426
07-07-18 조회 5,381
07-07-16 조회 3,181