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,839
18년 전 조회 2,475
18년 전 조회 3,401
18년 전 조회 3,315
18년 전 조회 3,488
18년 전 조회 3,408
18년 전 조회 5,065
18년 전 조회 5,360
18년 전 조회 3,572
18년 전 조회 2,875
18년 전 조회 3,111
18년 전 조회 2,432
18년 전 조회 2,234
18년 전 조회 2,184
18년 전 조회 3,222
18년 전 조회 2,492
18년 전 조회 2,519
18년 전 조회 2,212
18년 전 조회 2,571
18년 전 조회 3,333
18년 전 조회 4,255
18년 전 조회 3,510
18년 전 조회 2,177
18년 전 조회 2,109
18년 전 조회 3,022
18년 전 조회 1,826
18년 전 조회 2,176
18년 전 조회 2,450
18년 전 조회 2,343
18년 전 조회 2,429
18년 전 조회 4,181
18년 전 조회 1,951
18년 전 조회 4,527
18년 전 조회 3,086
18년 전 조회 2,397
18년 전 조회 3,430
18년 전 조회 3,068
18년 전 조회 2,986
18년 전 조회 5,777
18년 전 조회 2,448
18년 전 조회 3,586
18년 전 조회 3,478
18년 전 조회 3,869
18년 전 조회 3,416
18년 전 조회 2,599
18년 전 조회 2,262
18년 전 조회 2,697
18년 전 조회 6,269
18년 전 조회 2,905
18년 전 조회 4,713
18년 전 조회 2,194
18년 전 조회 1만
18년 전 조회 2,646
18년 전 조회 1,703
18년 전 조회 3,146
18년 전 조회 3,084
18년 전 조회 2,974
18년 전 조회 2,294
18년 전 조회 2,489
18년 전 조회 3,033
18년 전 조회 3,121
18년 전 조회 4,280
18년 전 조회 6,263
18년 전 조회 2,222
18년 전 조회 2,333
18년 전 조회 2,040
18년 전 조회 1,788
18년 전 조회 2,785
18년 전 조회 1,828
18년 전 조회 1,700
18년 전 조회 4,884
18년 전 조회 1,938
18년 전 조회 1,984
18년 전 조회 1,987
18년 전 조회 2,110
18년 전 조회 3,776
18년 전 조회 1,791
18년 전 조회 1,673
18년 전 조회 1,498
18년 전 조회 1,996
18년 전 조회 2,043
18년 전 조회 3,805
18년 전 조회 2,137
18년 전 조회 3,281
18년 전 조회 4,899
18년 전 조회 3,029
18년 전 조회 8,203
18년 전 조회 4,212
18년 전 조회 2,900
18년 전 조회 1,672
18년 전 조회 2,780
18년 전 조회 5,193
18년 전 조회 5,367
18년 전 조회 2,239
18년 전 조회 4,497
18년 전 조회 4,246
18년 전 조회 4,300
18년 전 조회 2,423
18년 전 조회 4,349
18년 전 조회 2,334