日記篇

1.設定顯示日記篇數
2.立體框(1)
3.立體框(2)
4.外框閃
5.一次過private/show晒所有日記
6. 好文分享
7.唔知你地有冇發現呢個制??

1.設定顯示日記篇數

Website stat

<!--- [Start] code provided by kkx3.com --->
<script title="Xanga.com Number-of-Posts-per-page Controller">
var xanga_timezone_settings = "+0800";
var number_of_posts_per_page =3;
var npc_a = "<";
var npc_b = "script src=\"http://goodies.zitez.net/xanga11.php?phase=1&pts="+number_of_posts_per_page+"&xtz="+encodeURIComponent(xanga_timezone_settings)+"\"></scr";
var npc_c = "ipt>";
document.write(npc_a+npc_b+npc_c);
</script>
<!--- [End] code provided by kkx3.com --->

Remarks

紅色字自己改返 ..3係SHOW幾多篇日記 ..
放在website stat,記得改番個time zone 做 GMT+8(對應番你xanga)

回到最上


2.立體框(1)

Header

<!--- [Start] code provided by kkx3.com --->
<style>body {border-style: liquid ; border-top-width: 10px; border-bottom-width: 10px; border-left-width: 10px;
border-right-width: 10px; border-color: #cccccc;}</style> <!--- [End] code provided by kkx3.com --->

Remarks

只要修改數字(粗幼度)和色碼即可。

放在Input your own Header HTML

回到最上


3.立體框(2)

Website stat

<!--- [Start] code provided by kkx3.com ---> <style>
body{
border-right: 10px dotted;
border-top: 10px dotted;
border-left: 10px dotted;
border-bottom: 10px dotted;
border-color:#cccccc;
}</style> <!--- [End] code provided by kkx3.com --->

Remarks

四條框邊的顏色一樣,但粗幼不一

放在Input your own Header HTML

回到最上


4.外框閃

Header

<SCRIPT LANGUAGE="JavaScript">
colours=new Array('cccccc','ffffff','000000')
function gs(){
var clrPos=Math.floor(Math.random()*colours.length)
with (window.document.body.style){
borderWidth=10;
borderStyle='solid';
borderColor=colours[clrPos];}}
if (document.all)window.document.body.onscroll=gs;
</SCRIPT>

Remarks

如果要加多d色要用 , 分隔色碼
放係Input your own Header HTML

回到最上


5.一次過private/show晒所有日記

Website stat

<!--- [start] code provided by kkx3.com ---!>
<!--- code was written by cychoi --->
<script>
var pri_options = 1;
var kkx3_a = "<";
var kkx3_b = "script src=\"http://kkx3.net/xanga/script/private.js\"></scr";
var kkx3_c = "ipt>";
document.write(kkx3_a+kkx3_b+kkx3_c);
</script>
<!--- code was written by cychoi --->
<!--- [end] code provided by kkx3.com --->

Remarks

唔該大家睇清楚d段code先好用

另外,code係由cychoi所寫,如果有任何問題,歡迎電郵通知

kkx3@kkx3.com

當private晒所有post之後,個code就會停止運作

介時請到look and feel內將呢段code pri_options 既數值由 1 改為  3。

(越多日記,private所需要既時間就越長)

要show晒d日記就將個 數值改為 2。

更詳盡解釋按此

回到最上


6. 好文分享

website stat

<!--- [start] code provided by kkx3.com --->
<!--

Xange-ShareIt! Version "2.5 Millikelvin".
Originally Created by Kenny TM~.

(2.5 mK is the temperature where helium-3 becomes superfluid.)

I, the author of this work, hereby release it into the public domain.
This applies worldwide.
In case this is not legally possible,
I grant anyone the right to use this work for any purpose, without any
conditions, unless such conditions are required by law.

Usage:

Change the parameters to suit your need.
Copy the whole code to Website Stats of your Look and Feel (http:// edit. xanga. com/ claf. aspx).
Save changes, done.

Changelog:

"2.5 Millikelvin": [2007 May 16]
Fixed the code so that all 4 editors (esp. the rich text alternate version) work correctly.

"450 Picokelvin": [2007 May 15]
Minor changes:
- Use attachEvent for adding event for IE instead of traditional model.
- Removed 2 loops in share_this_content().
- Rearranged the order of execution of attach_onDOMLoad to make it work
in Opera 9.

"Absolute Zero": [2007 May 14]
First version.

-->

<script type="text/javascript">
//<![CDATA[

// You can modify the following parameters to suit your need.

// Text appear in the ShareIt! link.
var xanga_share_it__label = '<strong>Share it!</strong>';
// The reference information you'd like to add to the referee.
// $URL$ = URL of your post
// $USERNAME$ = Your username.
var xanga_share_it__reftext = '<blockquote style="font-style:italic;">(Reference goes to <strong><a href="$URL$">$USERNAME$<img border="0" align="bottom" src="http://www.xanga.com/favicon.ico" /></a></strong>.)</blockquote>';

// Non-developers don't need to modify the code below.

var xanga_share_it__pex = "http://www.xanga.com\x2F\x70\x72\x69\x76\x61\x74\x65\x2F\x65\x64\x69\x74\x6F\x72\x78\x2E\x61\x73\x70\x78?freebie=1";

function $C (par, tn, cls) {
var ts = par.getElementsByTagName(tn);
var a = [];
var re = new RegExp("\\b" + cls + "\\b", "i");
for (var i = ts.length - 1; i >= 0; -- i) {
if (re.test(ts[i].className))
a[a.length] = ts[i];
}
return a;
}

function XSIEscape (str) { return str.replace(/\\/g, '\\\\').replace(/"/g,'\\x22').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\0/g, "\\0"); }

function ORSCer (doc, functor) { return function () { if (doc.readyState == "complete") { functor(); } } };

function attach_onDOMLoad (win, functor) {
if (win.addEventListener)
win.addEventListener ("DOMContentLoaded", functor, false);
else if (win.document.attachEvent)
win.document.attachEvent("onreadystatechange", ORSCer(win.document, functor));
}

function add_share_link () {
var tbls = $C(document.body, 'table', 'blogbody');
for (var i = tbls.length - 1; i >= 0; -- i) {
if (tbls[i].rows.length >= 2)
tbls[i].rows[1].cells[1].firstChild.innerHTML += ' - <a href="' + xanga_share_it__pex + '" onclick="share_this_content(this);return false;" class="snap_nopreview">' + xanga_share_it__label + '</a>';
}
}

function share_this_content (clr) {
var tbl = clr.parentNode.parentNode.parentNode.parentNode; // div; td; tr; table

var url = document.URL;
if (!(/xanga\.com\/(?:[^\/]+\/\d+\/.+?\.html|item.aspx)/i.test(url)))
url = clr.parentNode.getElementsByTagName('a')[0].href;
var un = url.match(/xanga\.com\/([\w.]+)/)[1];
if (un == "item.aspx") {
un = url.match(/[?&]user=(\w+)(?:&|$)/)[1];
}
var reftext = xanga_share_it__reftext.replace(/\$URL\$/g, url).replace(/\$USERNAME\$/g, un);

var blog = tbl.rows[0].cells[1].cloneNode(true);
var titler = blog.getElementsByTagName('h4')[0];
var title = titler ? titler.innerHTML : "";
blog.removeChild(titler);
var content = blog.innerHTML;
var newwin = window.open(xanga_share_it__pex);
attach_onDOMLoad(newwin, function () { fill_in_content(newwin, reftext + content, title); } );
return newwin;
}

function fill_in_content(the_win, content, title) {
var d = the_win.document;
d.getElementById('txtTitle').value = title;
the_win.SetTextFromQueryString = function(){}; // We don't have query strings

var pv = d.getElementById('postvalues');
var bv = d.getElementById('bodyvalue');

if (bv || pv) {
if (pv) pv.value = '{"Title":"' + XSIEscape(title) + '","Body":"' + XSIEscape(content) + '"}';
if (bv) bv.value = content;
} else if (the_win.GetEditorBox || the_win.GetEditor) {
var editor = (the_win.GetEditorBox || the_win.GetEditor)();
(editor.document || editor.Document).body.innerHTML = content;
} else if (the_win.ChangeMode) {
the_win.ChangeMode(2);
d.getElementById('RadEContentTextareawerichtext').value = content;
the_win.ChangeMode(1);
}
}

attach_onDOMLoad(window, add_share_link);

// TODO:
// - Check for memory leakage.

//]]>
</script>
<!--- [end] code provided by kkx3.com --->

Remarks

有在xanga看見好文章想和別人分享嗎?

常常轉貼文章,想別人也一起轉貼嗎?

這個code就幫到你了!

[只code由kenny_tm編寫,並對外開放]

回到最上


7.唔知你地有冇發現呢個制??

new entry

more here (詳情按此)

可以參考呢度...

kkxhk xanga

Remarks

回到最上


聯絡我們
如有錯漏,歡迎來信賜教

E-mail : kkx3@kkx3.com 標題請註明 Xanga教室