- 帖子
- 454
- 精華
- 0
- 威望
- 144
- 魅力
- 50
- 讚好
- 0
- 性別
- 男
|
1#
發表於 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>
希望幫到大家啦! |
|