방문 및 접속자 정보 플래시로 끌어쓰기

· 14년 전 · 3414
xmlcounter.php 메인폴더에 업로드하고
xmlvist.php 는 lib 폴더에 업로드합니다.
예제는 utf-8 입니다.
 
xmlcounter.php 파일을 플래시에서 xml 로드로 끌어 쓰면 됩니다.
이를테면 액션 2.0 에서는 아래처럼 끌어쓰면 되겠죠. 소스를 열면 xml 의 형식이 보이니까요.
 
loadXml = new XML();
loadXml.ignoreWhite = true;
loadXml.load("http://wittazzurri.hosting.paran.com/wittazzurri/xmlcounter.php");
loadXml.onLoad = function() {
    trace(this.firstChild.childNodes[0].firstChild);
    trace(this.firstChild.childNodes[1].firstChild);
    trace(this.firstChild.childNodes[2].firstChild);
    trace(this.firstChild.childNodes[3].firstChild);
    trace(this.firstChild.childNodes[4].firstChild);
    trace(this.firstChild.childNodes[5].firstChild);
}
 

첨부파일

xmlcounter.php (82 bytes) 13회 2011-08-09 20:09
xmlvist.php (3.5 KB) 5회 2011-08-09 20:09
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 6,256
14년 전 조회 8,577
14년 전 조회 9,481
14년 전 조회 4,229
14년 전 조회 5,566
14년 전 조회 9,279
14년 전 조회 8,141
14년 전 조회 6,369
14년 전 조회 6,460
14년 전 조회 3,415
14년 전 조회 6,864
14년 전 조회 3,536
14년 전 조회 4,988
14년 전 조회 6,933
14년 전 조회 7,128
14년 전 조회 3,867
14년 전 조회 6,094
14년 전 조회 4,699
14년 전 조회 8,753
14년 전 조회 4,849