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

· 14년 전 · 3415
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,257
14년 전 조회 8,579
14년 전 조회 9,484
14년 전 조회 4,231
14년 전 조회 5,566
14년 전 조회 9,282
14년 전 조회 8,141
14년 전 조회 6,373
14년 전 조회 6,461
14년 전 조회 3,416
14년 전 조회 6,865
14년 전 조회 3,537
14년 전 조회 4,989
14년 전 조회 6,934
14년 전 조회 7,129
14년 전 조회 3,867
14년 전 조회 6,094
14년 전 조회 4,700
14년 전 조회 8,754
14년 전 조회 4,849