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

· 14년 전 · 3386
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,222
14년 전 조회 8,543
14년 전 조회 9,452
14년 전 조회 4,200
14년 전 조회 5,545
14년 전 조회 9,253
14년 전 조회 8,110
14년 전 조회 6,348
14년 전 조회 6,435
14년 전 조회 3,387
14년 전 조회 6,838
14년 전 조회 3,510
14년 전 조회 4,963
14년 전 조회 6,907
14년 전 조회 7,094
14년 전 조회 3,842
14년 전 조회 6,046
14년 전 조회 4,667
14년 전 조회 8,724
14년 전 조회 4,826
🐛 버그신고