XD Forum Pro - 專業論壇 » 部落日誌交流 » Xanga 交流 » 我收集的Xanga語法 不定時更新
論壇:互動交流好去處,主打在線動漫及劇集 博客:您的私人空間,隨便上載與分享個人事物,完全免費 視頻:全國最大上載容量的視頻網站,無限制上載次數,無限制上載總量! 聯盟:提升您網站排名與流量,加入網站排行榜聯盟。

2007-7-8 15:26 火龍之混血兒
我收集的Xanga語法 不定時更新

1.設定顯示日記篇數
2.日期變中文
3.不要 Subscriptions, My Blogrings,Calender modules
4.將xanga profile 左轉右面
5.不要左面個人資料框
6.個人資料框透明
7.日記透明
8.文字跑馬燈
9.將日記內容另加背景
10.定時轉背景

-----------------------------------------------------------------------------------------

[size=5][b]1.設定顯示日記篇數[/b][/size]

[quote]<script>
numberOfEntries = 3; //Change this value here...
if(location.pathname=='/ID'){
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds.innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){break;}
}
stuff = tds.parentNode.parentNode.parentNode.parentNode.parentNode;
for(j=1;j<numberOfEntries;j++){
stuff=stuff.nextSibling.nextSibling.nextSibling
if(stuff.tagName=='BR'){
stuff=stuff.previousSibling;
}
}
for(i=0;i<20;i++){
if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE')
{
stuff.nextSibling.removeNode(true);
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>[/quote]

放係websites stat

[size=5][b]2.日期變中文[/b][/size]

[quote]<script type="text/javascript">
//
// ?003 EasterEgg, [url=http://www./]http://www.[/url]></easteregg
// Changes date text
// For use at Xanga only.
//
// Info at [url=http://dorkette.net/]http://dorkette.net[/url]
//

function replaceWordsDates()
{
    // ***add the Months or Days you wish to replace below
    var oldWordsDates = new Array(
        "January",
        "February",
        "March",
        "April",
        "May",
        "June",
        "July",
        "August",
        "September",
        "October",
        "November",
        "December",
        "Monday,",
        "Tuesday,",
        "Wednesday,",
        "Thursday,",
        "Friday,",
        "Saturday,",
        "Sunday,",
        "2002",
        "2003",
        "2004",
        "2005",
        "2006",
        "2007",
        "2008",
        "01, ",
        "02, ",
        "03, ",
        "04, ",
        "05, ",
        "06, ",
        "07, ",
        "08, ",
        "09, ",
        "10, ",
        "11, ",
        "12, ",
        "13, ",
        "14, ",
        "15, ",
        "16, ",
        "17, ",
        "18, ",
        "19, ",
        "20, ",
        "21, ",
        "22, ",
        "23, ",
        "24, ",
        "25, ",
        "26, ",
        "27, ",
        "28, ",
        "29, ",
        "30, ",
        "31, "
        );

    // *** [color=Red]you can change the red letter in the "[/color]
    var newWordsDates = new Array(
[color=Red]        "1月",
        "2月",
        "3月",
        "4月",
        "5月",
        "6月",
        "7月",
        "8月",
        "9月",
        "10月",
        "11月",
        "12月",
        "星期1 ",
        "星期2",
        "星期3",
        "星期4",
        "星期5",
        "星期6 ",
        "星期日",
        " 2002",
        " 2003",
        " 2004",
        " 2005",
        " 2006",
        " 2007",
        " 2008",
        "o1, ",
        "o2, ",
        "o3, ",
        "o4, ",
        "o5, ",
        "o6, ",
        "o7, ",
        "o8, ",
        "o9, ",
        "1o, ",
        "11, ",
        "12, ",
        "13, ",
        "14, ",
        "15, ",
        "16, ",
        "17, ",
        "18, ",
        "19, ",
        "2o, ",
        "21, ",
        "22, ",
        "23, ",
        "24, ",
        "25, ",
        "26, ",
        "27, ",
        "28, ",
        "29, ",
        "3o, ",
        "31, "[/color]
        );

    allDivData = document.getElementsByTagName('div');
        
    var collections = new Array(allDivData);
   
    for (var k = 0; k < collections.length; ++k )
    {
        for (var i = 0; i < collections[k].length; ++i )
        {   
            if (collections[k].innerHTML.indexOf('DIV') == -1)
            {
                for ( var n = 0; n < oldWordsDates.length; ++n )
                {
                    var indx = collections[k].innerHTML.indexOf(oldWordsDates[n])
                    while (indx != -1)
                    {   
                        var replacement = '';
                        indx = collections[k].innerHTML.indexOf(oldWordsDates[n]);
                        replacement = collections[k].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);
                        collections[k].innerHTML = replacement;
                        break;                    
                    }
                }
            }
        }
    }
}
replaceWordsDates();
</script>[/quote]

[b][size=5]3.不要 Subscriptions, My Blogrings,Calender modules[/size][/b]

[quote]<!-- start code-->
<script type="text/javascript">
<!--

// [color=Red]1 = yes, 0 = no[/color]
RemoveSubscriptionsModule = 1;
RemoveMyBlogringsModule = 1;
RemovePostingCalender = 1;

// DO NOT EDIT BEYOND THIS LINE

//man-made removeNode() for non-IE browser
if(window.Node){
Node.prototype.removeNode=function(removeChildren){
if(removeChildren)
return this.parentNode.removeChild(this);
else{
var range=document.createRange();
range.selectNodeContents(this);
return this.parentNode.replaceChild(range.extractContents(),this);
}
}
}

function checkIfModulesExists() {
xUrl = document.location.href.toLowerCase();
var re = /><\b\/[a-zA-Z]{1,}[\da-zA-Z_]{1,}\/[0123456789]+\/[\da-z-]{0,}.html/;
var nothome = /><\b\/profile.aspx|><\b\/><.aspx|><\b\/contentlatest.asp|><\b\/private\//;
if (!(xUrl.match(re) || xUrl.match(nothome))) {
return true;
} else {
return false;
}
}

function RemoveModules() {
var subscription = document.getElementById("subTitle").parentNode.parentNode.parentNode.parentNode.parentNode;
var calender= document.getElementById("__aspnetForm");
if (RemoveSubscriptionsModule == 1){
subscription.nextSibling.removeNode(true);
subscription.removeNode(true);
}
if (RemoveMyBlogringsModule == 1){
var blogring= calender.previousSibling.previousSibling.previousSibling;
blogring.nextSibling.removeNode(true);
blogring.removeNode(true);
}
if (RemovePostingCalender == 1){
calender.removeNode(true);
}
}

if (checkIfModulesExists()) RemoveModules();
//-->
</script>[/quote]

放在websites stat

[size=5][b]4.將xanga profile 左轉右面[/b][/size]

[quote]<script language="Javascript">
// original by sean http://www.></seanmeister
var tds = document.getElementsByTagName("td");
for (var i = 0; i < tds.length; i++){
if (tds.width == "200"){
tds.parentNode.appendChild(tds.cloneNode(true));
tds.parentNode.removeChild(tds);
break;
}}
</script>[/quote]

放在websites stat

[b][size=5]5.不要左面個人資料框[/size][/b]

[quote]<style type="text/css">
.#rblEprops{display:none;}
#pnlEnabled table, #htmleditor, #lblTimeZone, #pnlEprops, #rblEprops
/* width of the comment page */
{width:340px;}
.leftmoduletitlebar, .leftmoduleborder, .leftmoduleinterior, table.left, table.left TH, table.left TD, table.navigation, table.footer
{display: none;} </style>[/quote]

放website stats

[b][size=5]6.個人資料框透明[/size][/b]

[quote]<style type="text/css">
table.left { FILTER: alpha(opacity=[color=Red]85[/color]); }
</style>[/quote]

放在website stats

[b][size=5]7.日記透明[/size][/b]

[quote]<script language="javascript">
//Sets blog opacity (0-100)
opcty = [color=Red]10[/color];

//Sets rollover opacity
msvropcty = 100;

////////////////////////////////////

tables = document.getElementsByTagName('table');

for(var j=0;j<tables.length;j++){

if(tables[j].className == "blogbody"){

tables[j].style.filter = "alpha(opacity=" + opcty + ")";
tables[j].onmouseover = function(){this.style.filter = "alpha(opacity=" + msvropcty + ")";}
tables[j].onmouseout = function(){this.style.filter = "alpha(opacity=" + opcty + ")";}

}

}

//--></script>[/quote]

放在header

[size=5][b]8.文字跑馬燈[/b][/size]

[quote]<marquee direction=right><font size=4 color=blue>你打的字</font></marquee>[/quote]

可改為向右 <marquee behavior=Right>
或左右左右  <marquee behavior=alternate>

[b][size=5]9.將日記內容另加背景[/size][/b]

[quote]<style type="text/css">
<!--
.blogbody {background:url('[color=Red]網址[/color]') repeat-y fixed ;
}
-->
</style>[/quote]

放在website stats

[b][size=5]10.定時轉背景[/size][/b]

[quote]<SCRIPT Language="JavaScript">
var backgroundimage=new Array("[color=Red]圖片網址[/color]","[color=Red]圖片網址[/color]","[color=Red]圖片網址[/color]","[color=Red]圖片網址[/color]");
var swapspeed=10
var timer
var imgpreload=new Array()
if (document.all) {
for (i=0;i<=backgroundimage.length-1;i++) {
imgpreload=new Image()
imgpreload.src=backgroundimage
}}var i_backgroundimage=0
swapspeed=swapspeed*1000
function swapimages() {if (document.all) {
window.status=i_backgroundimage
document.body.background=backgroundimage[i_backgroundimage]
i_backgroundimage++
if (i_backgroundimage>=backgroundimage.length) {i_backgroundimage=0}timer=setTimeout("swapimages()",swapspeed)
}}window.onload=swapimages
</SCRIPT>
[/quote]

[[i] 本帖最後由 火龍之混血兒 於 2007-7-8 15:28 編輯 [/i]]

2008-4-13 10:52 h7stephanie
借左文字跑馬燈,,好令喔

2008-8-13 11:18 犯罪天使
多謝分享

好有用牙

2008-9-5 18:10 michael1379
d語法幾好喎

最鐘意定時轉背景

頁: [1]

重要聲明:本論壇是以即時上載留言的方式運作,XD Forum Pro - 專業論壇對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。

由於本論壇受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,例如侵害您的版權,請以電郵方式聯絡我們,並寫上貴公司或機構的相關資料(例如商業登記號及版權持有證明)以便我們查實後盡快處理有關問題。XD Forum Pro - 專業論壇有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切管理及法律追究之權利。

Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.