Board logo

標題: 教下大家點睇有咩人黎過xanga [打印本頁]

作者: askalpk    時間: 2007-1-1 08:32 PM     標題: 教下大家點睇有咩人黎過xanga

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

<script>
/* Change your options here.
   See the documentation at
   http://suhock.net/xanga/xasm.html
   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.href.substring(0,38) ==
        "http://www.xanga.com/private/home.aspx") {
      var link = document.links;
      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-




歡迎光臨 娛樂滿紛 26FUN (http://26fun.com/bbs7/) Powered by Discuz! 7.0.0