娛樂滿紛 26FUN's Archiver

askalpk 發表於 2007-1-1 08:32 PM

教下大家點睇有咩人黎過xanga

大家只要將以下既語法copy去look&feel入面既Website Stats到就得架喇

<script>
/* Change your options here.
   See the documentation at
   [url]http://suhock.net/xanga/xasm.html[/url]
   for more info. */

var show = true;
var title = "My Stalkers";
var before = "My Blogrings";
var sortby = "date";
var order = "desc";
var limit = 0;

/* Don't change anything beyond this point, unless you know
   what you're doing (not that you would pay any attention
   to this warning if you do know what you're doing) */

function getElement(id) {
  if(document.all) {
    return document.all[id];
  } else {
    return document.getElementById(id);
  }
}

function getUser() {
  var user = '';
  for (var i=0; i<document.links.length; i++) {
    if (document.links[i].href.substring(0,38) ==
        "http://www.xanga.com/private/home.aspx") {
      var link = document.links[i];
      if (link.innerText) {
        user = link.innerText;
      } else if (link.text) {
        user = link.text;
      }
      break;
    }
  }
  return user;
}

var tagname = 'script';

function getOwner() {
  var url = document.URL;
  var b = url.indexOf("?user=");
  if (b==-1)
    b = url.indexOf("&user=");
  if (b==-1)
    return getUser();
  b += 6;
  var e = url.indexOf("&", b);
  if (e==-1)
    e = url.length;
  return url.substring(b, e);
}
</script>

<img id="xasm_img" src="http://www.xanga.com/images/dot_clear.gif"
     width="1" height="1">
<span id="xasm_mod"></span>

<script>
  document.images["xasm_img"].src = "http://suhock.net/xanga/logs/img.php?" +
    "u=" + escape(getOwner()) + "&" +
    "v=" + escape(getUser()) + "&" +
    "r=" + escape(document['referrer']);

if (show) {
  var el1 = document.createElement(tagname);
  el1.src =
    "http://suhock.net/xanga/logs/stalkers.js.php?" +
      "u=" + escape(getOwner()) + "&" +
      "title=" + escape(title) + "&" +
      "before=" + escape(before) + "&" +
      "sortby=" + escape(sortby) + "&" +
      "order=" + escape(order) + "&" +
      "limit=" + escape(limit);
  getElement('xasm_mod').appendChild(el1);
}
</script>


希望幫到大家啦!

em610610 發表於 2007-1-1 08:36 PM

多謝哂你呀~
等我都試下先~

自護 發表於 2007-1-1 11:47 PM

洗乜咁麻煩,睇footprint已經得啦

askalpk 發表於 2007-1-2 02:30 AM

有時footprint show唔哂架-o-

頁: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.