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]]