natalief1231 18-7-2006 19:07
Xanga語法 ( 特別篇 )
特別篇
1.Xanga Code.. [[ ]]<--為可修改部分
Buttons & Drops Down Code
( 即Xanga Posing Canlendar既箭嘴顏色及Go To Date既背景圖 )
<!-- Buttons & Drops Down Start -->
<style type="text/css">
}
input, select, textarea, .textfield, .button {
border: [[2]]px solid #[[000000]]
font:[[13]]px arial;
background-color:[[#000000]];
letter-spacing:[[0]]px;
color: #[[000000]];
20.框框入面既走馬燈
<table>
<TR>
<td>
<fieldset>
<marquee direction="left" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>你想打既字</font>
</marquee>
</fieldset>
</td>
<td>
<fieldset>
<marquee direction="down" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>你想打既字</font>
</marquee>
</fieldset>
</td>
<td>
<fieldset>
<marquee direction="right" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>你想打既字</font>
</marquee>
</fieldset>
</td>
將
<fieldset>變做<fieldset style="background-image: url(xxx.jpg);">
(xxx.jpg係圖片名)
呢個係係格仔入面加圖做背景~
----------------------------------------------------------------------------------------------
將<fieldset>變做<fieldset style="background-color: #rrggbb;"> (rrggbb係顏色)
呢個係底色
----------------------------------------------------------------------------------------------
兩個一齊做:
將<fieldset>變做<fieldset style="background-image: url(xxx.jpg); background-color: #rrggbb;">
將<fieldset>變做<fieldset style="background-image: url(xxx.jpg);">
(xxx.jpg係圖片名)
呢個係係格仔入面加圖做背景~
background-image: url( [[[url]www.XXX.com[/url]]] );
background-repeat: [[repeat]];
background-attachment: [[fixed]];
background-position: [[bottom right]];
}
</style>
<!-- Buttons & Drops Down End -->
2. 移除heading廣告 ( 簡易版,唔得就用下面個個 )
<noembed>
<xml>
*放Website statues你放既語法最尾!!!
3.Ad. Remover Code (移除heading廣告)
<!-- Ad. Remover Start -->
<!--Screennaimless code created by Anti_fukin_social-->
<!--http://www.xanga.com/anti_fukin_social--></table></td></tr></tr></td></table>
<ilayer name=""><div id="" style="width:1; height:1; BACKGROUND: #; FILTER: alpha(opacity=0); overflow:auto">
<ilayer name=""><div id="" style="width:1; height:1; BACKGROUND: #; FILTER: alpha(opacity=0); overflow:auto">
<!--Finished-->
<!-- Ad. Remover End -->
4. Take a break!!!
5.將個人資料搬向右邊
<script language="javascript">
// original by sean [url]http://www.xanga.com/seanmeister[/url]
var tds = document.getElementsByTagName("td");
for (var i = 0; i < tds.length; i++){
if (tds[i].width == "200"){
tds[i].parentNode.appendChild(tds[i].cloneNode(true));
tds[i].parentNode.removeChild(tds[i]);
break;
}}
</script>
6.每篇日記加捲軸
<style type="text/css">
.custom{
width: 200px;
height: 200px;
z-index:100;
overflow: auto;
border: px #000000 solid;
background: #ffffff;
}</style>
<script>
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds[i].innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){
if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild;
inner = stuff.innerHTML
stuff.innerHTML="";
stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>');
}
}
</script>
7.mouse 放再日記上才顯示日記
放在 website states
mouse指去的日記變實色,唔指便淡色
<!-- begin code provided by createblog.com -->
<script language="javascript">
//Sets blog opacity (0-100)
opcty = 10;
//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>
<!-- end code provided by createblog.com -->
8.按圖進入
放係HEADER
<script type='text/javascript'>
// intro splash page by micron
// for more xanga scripts and help go to createblog.com
// change this url to an image of your choice
var image = '圖既網址'
function enterSite() {
document.getElementById('splash').style.display = 'none'
var content = document.getElementsByTagName("center");
for (var i=0; i<content.length;i++) {
content[i].style.display = 'block'
}
return false;
}
if (document.title.slice(-10) == 'Xanga Site') {
document.write('</span></center><style type="text/css"> center {display:none;} .image {border:0px solid #dcdcdc;} </style><table height="100%" width="100%" id="splash"><tr><td align="center" valign="middle" style="text-align:center !important;"><a href="#" onclick="return enterSite();"><img src="'+ image +'" border="0" class="image"></a></td></tr></table><center><span>');
}
</script>
9.四邊唔同色外框
<style>
body{
border-left: 粗幼px dotted 色;
border-right: 粗幼px dotted 色;
border-top: 粗幼px dotted 色;
border-bottom: 粗幼px dotted 色;
}</style>
natalief1231 18-7-2006 19:07
10.穩藏 My Blogrings
<!-- begin code provided by createblog.com -->
<script language="javascript"><!--
// original by sean, [url]http://www.xanga.com/seanmeister[/url]
if (location.href.match ("home.aspx")) {
var ht = document.getElementsByTagName ('table');
for (var t = 0; t < 10; t++) {
str = ht[t].cells[0].innerHTML;
if (!str.match (/改做自己XANGA ID/i) && str.match (/(My Blogrings)/i)) ht[t].style.display = "none";
}
}
//--></script>
<!-- end code provided by createblog.com -->
11.工具列走字
放在 website states
<script language="javascript">
/*
Flash Bottom Title // Single Message
Created & Fixed to work in XANGA
by xanga.com/dorischu
*/
<!--
st=setTimeout
var msg="Welcome to my Xanga"; // TEXT HERE
var interval = 250; // speed
seq = 0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) { seq = 0 };
window.st("Scroll();", interval );
}
-->
</script>
<body onLoad="Scroll();">
12.ScrollBar 搬去左邊
擺係 Custom Header
<body ONCONTEXTMENU="return false" dir="rtl"><DIV DIR="LTR">
13.日記每板三篇
<!-- begin code provided by createblog.com -->
<script>
// display three entries
// by markiscool for createblog.com
if(location.pathname=="/home.aspx"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds.innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds.innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds.getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=5}else{x=3}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds.getElementsByTagName('div');
for(j=2+(2*2)-0; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds.getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds.getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>
<!-- end code provided by createblog.com -->
14.改 comments 等字句
[url]http://help.xanga.com/replacelinks.htm[/url]
15.加圖片
<!-- begin code provided by createblog.com -->
<!-- Comments, Eprops, and Email It Envelope Script by Sherrys_Designs-->
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "<img src=圖片網址border='0'>");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "<img src=圖片網址border='0'>");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "<img src=圖片網址border='0'>");
}//-->
</script>
16.Profile 相變矇
<!-- begin code provided by createblog.com -->
<style type=text/css>img {FILTER:glow(color=pink)
progid:DXImageTransform.Microsoft.Alpha( Opacity=90, FinishOpacity=1, style=3, StartX=0,
FinishX=100, StartY=0, FinishY=100)}p table {background:transparent;filter:Alpha(opacity=90)}
</style>
<!-- end code provided by createblog.com -->
17.鎖滑鼠右鍵及 HighLight
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
18.滑鼠變十字線
<script language="javascript1.2">
if (document.all&&!window.print){leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}function followmouse1(){//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}if (document.all)document.onmousemove=followmouse1
else if (document.layers){window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2}function regenerate(){window.location.reload()}function regenerate2(){setTimeout("window.onresize=regenerate",400)}if ((document.all&&!window.print)||document.layers)//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
</script><style>#leftright, #topdown{position:absolute;
left:0;top:0;width:1px;height:1px;layer-background-color:no;
background-color:white;
z-index:100;font-size:1px;}</style><div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>
19.自設網頁名
<body ONDRAGSTART="window.event.returnvalue=false" ONCONTEXTMENU="window.event.returnvalue=false" onSelectStart="event.returnvalue=false" >
<script language=javascript >
title_new="修改網頁名"
step=0
function flash_title()
{
step++
if (step==7) {step=1}
if (step==1) {document.title=' '+title_new+' '}
if (step==2) {document.title=' '+title_new+' '}
if (step==3) {document.title=' '+title_new+' '}
if (step==4) {document.title=' '+title_new+' '}
if (step==5) {document.title=' '+title_new+' '}
if (step==6) {document.title=' '+title_new+' '}
}
flash_title()
</script>
gracie_sweetie 18-11-2007 09:55
Would it work if I use this in another site?