查看完整版本: xanga語法大集合ar!!

棋棋 07-9-17 15:17

xanga語法大集合ar!!

[color=#008000]音樂篇

點樣加個player
<embed src="url" true? loop="false">
----------------------------------------------------------------------------

將d .mpg檔(影片檔)放上xanga
<embed src="url" true? loop="false">
----------------------------------------------------------------------------
放MV
<embed type="audio/x-pn-realaudio-plugin" c c height="180" width="220" autostart="false"><center><embed type="audio/x-pn-realaudio-plugin" c c height="44" width="220" autostart="true" src="網址">

或者呢個

<embed src="MV網址" width="240" height="80" autostart="-1"></embed>

width、height自行修改

----------------------------------------------------------------------------
整player有得禁play、stop button
<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME value>
<param NAME="ShowControls" value="0">
<param NAME="ShowStatusBar" value="0">
<param NAME="ShowDisplay" value="0">
<param NAME="DefaultFrame" value="Slide">
<param NAME="Autostart" value="1">
<param NAME="Loop" value="True">
</object>
<form name="form">
<p align="right">
<font face="Verdana">
<select style="font-size: 8pt; background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; width: 154; color: #3399FF; font-face: verdana; height: 23; background-position: 0%" name="playlist" size="1">
<option value="0">歌名</option>
<option value="1">歌名</option>

</select><p align="right"><input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色"  type=button value=Play name=darkplay>

<input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色"  type=button value=Pause name=darkpause>

<input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色"  type=button value=Stop name=darkstop></form>

<script language="javascript">
<!--
var playstate = 1;
shuffle = // set to 0 to always play first song in list
        // set to 1 to randomly choose the first song to play
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]=" 歌網址"
songs[1]=" 歌網址"

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
} //--></script>

DOUBLE就係兩條線
亦可以改DOTTED(點),SOLID(線)
背景色就係果個禁PLAY果度GE背景色
放係Input your own Header HTML
----------------------------------------------------------------------------


MUSIC BOX
<script language="javascript">
function songstop(){
if (document.layers) {document.ram.document.write(" "); document.lthhung.document.close()}
if (document.all) lthhung.netinnerHTML=" "}
function songplay(){
if (document.layers) {
document.lthhung.document.write("<embed src='+sound+' autostart='true' loop='true' width='0' height='0'>"); document.ram.document.close()}
if (document.all) lthhung.innerHTML="<embed src='"+sound+"' autostart='true' loop='true' width='0' height='0'>"}
function getNewSound(){
sound=document.hung.music.options[document.hung.music.selectedIndex].value;
songstop()
songplay()}
</script>
<a id="lthhung"></a>
<form name="hung">
<select  size="1" name="music">
<option style="BACKGROUND-COLOR:purple;color:pink" >
*選首您喜歡的音樂*</option>
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:pink;color:purple" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:pink;color:purple" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:pink;color:purple" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
</select>
</form>
放係Input your own Header HTML
----------------------------------------------------------------------------

點樣整一個 mtv (係 *.wmv ) 入我個 header 度呀??
首先在look & feel裡 Custom Header click左 Input your own Header HTML ...
跟住放此語法在下面的"Your HTML"內
 <EMBED src=音樂檔的位置>
----------------------------------------------------------------------------

Upload問題:如果唔想用日本Geocities

[/color][url=http://geocities.yahoo.co.jp/][color=#0000ff]http://geocities.yahoo.co.jp/[/color][/url]

[color=#008000]可以試下Angelfire

[/color][url=http://www.angelfire.com[url]http://www.angelfire.com[/url]][color=#0000ff]http://www.angelfire.com[url]http://www.angelfire.com[/url][/color][/url]

[color=#008000]------------------------------------------------------------------------------



除Xanga內字型另外想要其他字型:
需要上一些專dl字型GE網度DL。
但係你用黎寫日記要小心,因為未必人人睇到你寫咩
因為你裝左果隻字唔等於人地都有,所以唔係個個睇到。
最好用番電腦入面已經有GE字型寫會好好多。
想知d字型係點你可以0係word度打字~果度都有字型俾你揀。

-------------------------------------------------------------------------------------
唔要Xanga內某些部分:

唔要posting calendar
<script language="javascript"><!--
// original by sean, [/color][url=http://www.xanga.com/seanmeister][color=#0000ff]http://www.xanga.com/seanmeister[/color][/url]
[color=#008000]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 (/Sites I Read/i) && str.match (/(Posting Calendar|Get Involved!|Build Traffic!)/i)) ht[t].style.display = "none";
}
}
//--></script>

放係website stats
----------------------------------------------------------------------------

唔要廣告
<!--AdRemover-->
<!--Screennaimless code created by Anti_fukin_social-->
<!--[url]http://www.xanga.com/anti_fukin_social--&gt[/url];</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-->
<!--End Of AdRemover-->

放係website stats度,最底。

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

想唔要xanga最低果行"xanga - join - upgrade - skins - about - terms of use - privacy - help - contact us - sign in":::

<style type="text/css">
table.footer { display:none; }
</style>

放去website stats

------------------------------------------------------------------------------------------------
唔要左手面個人資料框

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

放website stats
請記得要加番一d超連結,唔係無左左手面GE框係改唔到LOOK & FEEL內GE野。
加超連結例子:
<a href="網址">look & feel</a>
------------------------------------------------------------------------------------------------
唔要個日記想shut down:

[/color][url=http://www.xanga.com/private/sitestatus.aspx][color=#0000ff]http://www.xanga.com/private/sitestatus.aspx[/color][/url]

[color=#008000]可以shut down。

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


點樣可以將左邊d野調去右邊
<script language="javascript">
// original by sean [/color][url=http://www.xanga.com/seanmeister][color=#0000ff]http://www.xanga.com/seanmeister[/color][/url]
[color=#008000]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>[/color]

棋棋 07-9-17 15:18

倒數篇
倒數器
<script language="javascript1.2">

var today = new Date;
var Future0 = new Date;

var BirthMonth = 你想邊月;
var BirthDate = 你想邊日;
var BirthYear = 你想邊年;
BirthMonth--;

Future0.setMonth(BirthMonth, BirthDate);
if (Date.parse(today) > Date.parse(Future0))
{
Future0.setFullYear(today.getYear()+1);
age = (today.getYear() - BirthYear) + 1;
}
else
{age = today.getYear() - BirthYear;}

if (age % 10 == 0)
ageend = 'th';
else if (age % 10 == 4)
ageend = 'th';
else if (age % 10 == 5)
ageend = 'th';
else if (age % 10 == 6)
ageend = 'th';
else if (age % 10 == 7)
ageend = 'th';
else if (age % 10 == 8)
ageend = 'th';
else if (age % 10 == 9)
ageend = 'th';
else if (age % 10 == 1)
ageend = 'st';
else if (age % 10 == 2)
ageend = 'nd';
else if (age % 10 == 3)
ageend = 'rd';


var faraevent = "<font color=#色碼><i>my birthday</font>";

today1 = Date.parse(today);
future1 = Date.parse(Future0);
secleft = future1 - today1;
miliday = 24 * 60 * 60 * 1000;
daysleft = secleft/miliday;
daysleftint = Math.round(daysleft);

if (daysleftint > 1)
document.write(" ", daysleftint, " <font color=#色碼>days until my ", age, ageend, " birthday</font>");
else if (daysleftint == 1)
document.write("<font color=#色碼>my <b>", age, ageend, "</b> birthday is</font> tomorrow");
else if (today1 == future1)
document.write("<font color=#色碼>my <b>", age, ageend, "</b> birthday is</font> today");
else
document.write("passed");
</script>

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

想偷數一件事紀念日
if (daysleftint > 1)
document.write(" ", daysleftint, " <font color=#xxxxxx>days until my ", age, ageend, " birthday</font>");
else if (daysleftint == 1)
document.write("<font color=#xxxxxx>my <b>", age, ageend, "</b> birthday is tomorrow </font>");
else if (today1 == future1)
document.write("<font color=#xxxxxx>my <b>", age, ageend, "</b> birthday is</font> today</font>");
else
document.write("passed");
</script>

你一共要改上面3句野‥
第1句係話仲有幾多日到你想倒數果個日子
第2句係話明天就係果個日子啦
而第3句就話係今日係果個日子啦

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




連結效果:
LINK時有背景

<style type="text/css">a:hover {background:url(圖網址); text-decoration: none;}</style>

放INPUT

-----------------------------------------------------------------------------------------------
就咁放大:

<style>
a:hover
{font size: 10pt;} </style>改數字放係Input your own Header HTML

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

加外框同colour:

<style>
a:hover{border: 粗px dotted #色; font size: 大細pt;}
</style>可改double(雙線)、solid(單線)放係Input your own Header HTML
------------------------------------------------------------------------------------------------
陰影(禁到連結時)

<!--A:hover{color:#最面果隻色;filter:dropshadow(color=#反射後面果隻色,offx=2,offy =2,positive=true);height:16pt;text-decoration:none;}A{text-decoration:none;}-->
offx 係反射果度向橫GE大細
offy 係反射向下GE大細
height 係字GE高

放係Input your own Header HTML
------------------------------------------------------------------------------------------------
漸變
<style>
a:hover, a:link, a:visited
{filter:blur; .alpha
{width: inherit; height: 1;
filter: alpha
(Opacity=50, FinishOpacity=10, style=1, StartX=0, StartY=0, FinishX=580, FinishY=0);}
</style>


Opacity..最深係幾多
FinishOpacity...最淺係幾多
放係Input your own Header HTML
------------------------------------------------------------------------------------------------
同樣係陰影,但係人地入去到就見到GE陰影(有兩個方法)
1. 自己可以調教陰影斜位

<style>
a:hover, a:link, a:visited
{filter:blur; .alpha
{width: inherit; height: 1;
filter:shadow(color=#色,offx=2,offy=2,positive=true);}
</style>

offx 係反射果度向橫GE大細
offy 係反射向下GE大細

2.無得改高與斜
<style type="text/css">
<!-- a:link {filter:glow(color:#背景色, strength=強度);height:0px;width:inherit}
a:active {filter:glow(color:#背景色, strength=強度);height:0px;width:inherit}
a:visited {filter:glow(color:#背景色, strength=強度);height:0px;width:inherit}
a:hover {filter:glow(color:#背景色, strength=強度);height:0px;width:inherit} --></style>
放係Input your own Header HTML

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


防人地右CLICK篇

防人地右CLICK時...3種HTML
第一(放係Input your own Header HTML)
<script language="javascript">
if (navigator.appName.indexOf("Internet Explorer") != -1)
document.onmousedown = noSourceExplorer;
function noSourceExplorer(){if (event.button == 2 |
event.button == 10){alert(" 字 ")
;}}</script>

呢個呢~就係當人地右禁時,就會彈出一個警告WINDOWN GE JE~只係會出現一次(當然如果果條友不停禁就會不停有啦)
------------------------------------------------------------------------------------------------

第二(放係Input your own Header HTML)
<script language=javascript>
function click(){
if(event.button==2){earthquake()
alert("警告的字")
window.open("網址")
;}
}document.onmousedown=click// --]
function earthquake(){
window.moveTo(1000,5000)
}
</script>
而呢1個呢~就係當人地右禁時~就會有警告字句而且仲會彈多個WINDOWN出黎添...
如果你想佢不停咁彈好多個WINDOWN出黎呢..
------------------------------------------------------------------------------------------------

第3(放係Input your own Header HTML)

<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">

防人地右click+highlight既方法
等人地連文字都好難用ctrl+c去copy到..
當對方想右click你既時候..會咩野反應都冇架..
----------------------------------------

隨機背景圖

<script language=javascript>
<!--
var pic=new Array(5)
pic[0]="圖1網址"
pic[1]="圖2網址"
pic[2]="圖3網址"
pic[3]="圖4網址"
pic[4]="圖5網址"

var newdate=new Date()
var getpic=newdate.getSeconds()%pic.length
document.write('<body background='+pic[getpic]+'>')
//-->
</script>


放INPUT YOUR OWN HTML。
有幾多張圖就改紅色地方。
Last 10個黎你日記:放去website stats

<!-- Script by Paul Chen -->
<div id="customTen" style="display:none">
<table class="left" cellSpacing="0" cellPadding="4" width="100%" border="1">
<tr><th class="left" vAlign="top" align="left">
Last 10 Visitors</th></tr><tr><td class="left" vAlign="top">
<div id="lastTen"></div></td></tr></table><br/></div>
<script> // Kaiyotee ::: Paul Chen
//************
var time = -5;
//************
if(location.pathname.toLowerCase()=="/home.aspx"){
a = document.getElementsByTagName('a');
for(j=0;j<a.length;j++){name="Guest";m=a[j].innerHTML;n=a[j].href;
if(n.indexOf(m)!=-1 && n.indexOf('private/home.aspx')!=-1){name=m;break;}}
var head = document.getElementsByTagName('head').item(0);
script = document.createElement('script');
script.src = "http://juicypork.t35.com/tlog/track.php?view="+name+"&offset="+time;
head.appendChild(script);}</script>

將5轉8
-----------------------------------------------------------

改XANGA字。
兩個CODE都可以用。放去website stats
1.

<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 (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "你想改既add erops既中文字");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "你想改既erop既中文字");
else if (str.match (/add comments/i)) links[l].innerHTML = str.replace (/add comments/i, "你想改既add comment既中文字");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "你想改既comment既中文字");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "你想改既email既中文字");
}//-->
</script>
------------------------------------------------------------------------------------------------
2.
<script type="text/javascript">
//
function replaceWords()
{
var oldWords = new Array(
"State:",
"Name:",
"Country:",
"Birthday:",
"Gender:",
"Interests:",
"Expertise:",
"Email:",
"Website:",
"MSN:",
"email it",
"Subscriptions",
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"Subscribe to ",
"read my profile",
"sign my guestbook",
"Occupation",
"Go To Date",
"Next 5",
"Previous 5");

var newWords = new Array(
"State:",
"Name:",
"Country:",
"Birthday:",
"Gender:",
"Interests:",
"Expertise:",
"Email:",
"Website:",
"MSN:",
"email it",
"Subscriptions",
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"Subscribe to ",
"read my profile",
"sign my guestbook",
"Occupation",
"Go To Date",
"Next 5",
"Previous 5");

allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');

var collections = new Array(allTableData,allTableHeaders);

for (var k = 0 ; k < collections.length ; ++k )
{
for (var i = 0 ; i < collections[k].length ; ++i )
{
if (collections[k].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0 ; n < oldWords.length; ++n )
{
var indx = collections[k].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k].innerHTML.indexOf(oldWords[n]);
replacement = collections[k].innerHTML.replace(oldWords[n], newWords[n]);
if(navigator.userAgent.toLowerCase().indexOf('compatible')>0){collections[k].innerHTML=replacement;//please use supported code at [url]http://help.xanga.com/codes.htm[/url]
}
break;
}
}
}
}
}
}
replaceWords();
//
</script>

棋棋 07-9-17 15:18

其他篇

改左個標題
<script type='text/javascript'>
document.title = ('你想要顯示既字');
//-->
</script>

放係Input your own Header HTML

------------------------------------------------------------------------------------------------
點樣可以整個瀏覽人數

[url]http://www.ultra-counter.com/traffic/counter.jsp[/url]

簡一個你鍾意o既樣
禁入去,再照住做,就得嫁啦
最後將語法放o係Header
------------------------------------------------------------------------------------------------


點樣可以係人地入黎自己個xanga個陣會彈一個welcome message出黎?
<script language="javascript">
<!--
alert(" 字 ");
//--></script>
放係Input your own Header HTML

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

整Chattbox
[url]http://chatter.flooble.com/[/url]

申請一個a/c..
再貼落jave xxxx度 
-------------------------------------------------------------------------------------

想要用PW入日記

密碼進入:
<script language="javascript">
<!--
var keyword = " 密碼 "
function checkKey(){
var key = prompt(" 提示問題 "," 打密碼地方GE字 ")
if(keyword != key)
history.go(0)
}
checkKey()
//-->
</script>


一樣係放落INPUT。

呢個唔會有錯網頁要去…
即係一定要人地知密碼先會入到GE。
其實都幾好用…


<script LANGUAGE="javascript">
<!-- Begin
var monkey = prompt("請輸入所需要密碼"," 提示密碼 1234 ")
if (monkey == '1234'){
}
else {
self.location = 'http://www.yahoo.com'
}
// End -->
</script>


呢個就係錯左有網頁去GE。
岩左就會入日記度~
想要GE人都可以用。

放係Input your own Header HTML
------------------------------------------------------------------------------------------------

日記內容有框

<style type="text/css">
table.blogbody {
/* this edits the other the place where the blog is */;
family-font: verdana;
border: 粗度px double #色;
width:闊px;
FILTER: alpha(opacity=透明度);

</style>


透明度個數愈細就愈透

虛線就dashed..點點就dotted..雙線就double

點點就一定要係2px dotted

放係Input your own Header HTML
------------------------------------------------------------------------------------------------
框住日期的框
<style type="text/css">
div.blogheader, .caption {
font-family:日期字型;
text-transform:none;
font-size:日期字大細px;
line-height:高度px;
font-weight:bolder;
color:#字色;
letter-spacing:相隔px;
text-align: 放的位置CENTER、LEFT、RIGHT;
background-image:url(' 背景圖 ');
background-color: 背景色;
height: 日期框高px;
width: 日期框闊px;
}
</style>
放INPUT
------------------------------------------------------------------------------------------------

自我介紹個背景:
<style type="text/css">
<!--
table.left th { background-image:url(' 圖址 ') }
table.left td { background-image:url(' 圖址 ') }
//-->
</style>

th係profile果個title背景
td 係profile果個框ge背景

放係Input your own Header HTML

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

有框框住成個日記...仲有捲軸
<DIV align="center" valign="middle" style="BORDER-RIGHT: #色 2px dotted; BORDER-TOP: #色 2px dotted; FILTER: alpha(opacity=透明度); OVERFLOW: auto; BORDER-LEFT: #色 2px dotted; WIDTH: 705px; BORDER-BOTTOM: #色 2px dotted; HEIGHT: 650px; BACKGROUND-COLOR:#色">

放INPUT
------------------------------------------------------------------------------------------------

想改捲軸(拉上拉落果個野)既顏色:::

<style>
BODY {
SCROLLBAR-FACE-COLOR: #******;
SCROLLBAR-HIGHLIGHT-COLOR: #******;
SCROLLBAR-SHADOW-COLOR: #******;
SCROLLBAR-3DLIGHT-COLOR: #******;
SCROLLBAR-ARROW-COLOR: #******;
SCROLLBAR-TRACK-COLOR: #******;
SCROLLBAR-DARKSHADOW-COLOR: #******;
}
</style>

******打返個顏色碼
放INPUT

------------------------------------------------------------------------------------------------
想改subcription上面d名:::

<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 (/idname/i)) links[l].innerHTML = str.replace (/idname/i, "***");
else if (str.match (/idname/i)) links[l].innerHTML = str.replace (/idname/i, "***");
}//-->
</script>

idname打返subcription本身對方個id
***打返你想改成既字

放去website stats..


------------------------------------------------------------------------------------------------
透明圖o既code
<IMG style="FILTER: alpha(opacity=xx)" src="圖片網址">

透明程度(0-100)
0 係最透,100係最唔透明
------------------------------------------------------------------------------------------------
SUB GE人順序A-Z排列:

登入左…o係subscription list最底果度會有Edit or Read Subscriptions
按入Edit → General Setings....
o係Order of subscriptions in module 度揀Alphabetical 就得 =]
------------------------------------------------------------------------------------------------
改晒成個面板都係透明

<style>
table{filter:Alpha(Opacity=50)}
</style>
改Opacity,愈細愈透放係Input your own Header HTML
------------------------------------------------------------------------------------------------
Profile框透明

<style type="text/css">
table.left { FILTER: alpha(opacity=85); }
</style>
改Opacity,愈細愈透放係Input your own Header HTML

------------------------------------------------------------------------------------------------
左面個框整窄D
<style type="text/css">
table.left { border: 粗px dashed #色; width:你想要GE闊px}
</style>
dashed可改dotted(點)、double(雙線)、solid(單線)

放係Input your own Header HTML
------------------------------------------------------------------------------------------------

整到要禁一幅圖先入到日記
<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:1px 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>

麻煩將{}改做[],因為display唔到
之後成個放係header html


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


滑鼠篇
想改cursor圖案:::
<style TYPE="text/css">p {align=justify}
BODY{cursor: url(圖1);}
a {cursor: url(圖2);}
</style>

圖1打返普通情況下你想改成既cursor個url
圖2打返係link上面既cursor個url

cursor不可能用jpg、gif圖(即係唔可以偷link,一定要自己搵網頁upload)

放係Input your own Header HTML
------------------------------------------------------------------------------------------------
滑鼠帶圖
<body onmousemove="C.style.left=document.body.scrollLeft+event.clientX+10;C.style.top=document.body.scrollTop+event.clientY+10"><font id="C" style="position:absolute" ><img border="0" src="圖片網址"></font>

clientX+10 及 clientY+10
數字係圖片距離滑鼠GE遠。

放係Input your own Header HTML

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

框成個日記:

立體框:
<style>body {border-style: liquid ; border-top-width: 上邊粗px; border-bottom-width: 底邊粗px; border-left-width: 左邊粗px;
border-right-width: 右邊粗px; border-color: 色;}</style>
放係Input your own Header HTML
------------------------------------------------------------------------------------------------

有個框框住成個xanga:::
<script language="javascript1.2">
if (document.all)
document.body.style.cssText="border:框既粗度 solid #色碼"
</script>

放係Input your own Header HTML
------------------------------------------------------------------------------------------------
呢個就係一次過改哂4條邊GE色。
<style>
body{
border-right: 粗幼px dotted;
border-top: 粗幼px dotted;
border-left: 粗幼px dotted;
border-bottom: 粗幼px dotted;
border-color:色碼;
}</style>

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

呢個就係4邊可以唔同色GE。
<style>
body{
border-left: 粗幼px dotted 色;
border-right: 粗幼px dotted 色;
border-top: 粗幼px dotted 色;
border-bottom: 粗幼px dotted 色;
}</style>
------------------------------------------------------------------------------------------------

圖片篇點可以整到d圖郁
<MARQUEE behavior=alternate width=500> <img src="圖片"> </MARQUEE>

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

點樣可以令張圖上下左右咁郁咁郁?
<marquee direction="down" height=100 width=100 scrollamount="2">
<img src="圖片">
<img src="圖片">
<img src="圖片">
<img src="圖片">
<img src="圖片">
</marquee>

direction果度就係你想d圖向上(up)、向下(down)、左(left)、右(right)
height & width 就係走動範圍大細
scrollamount就係速度
-----------------------------------------------------------------------------------------------


點樣.整到d相透明
透明圖
<img style="FILTER: alpha(opacity=透明度)" onmouseout=makevisible(this,1) src="圖片的網址">

透明度: 1-100

棋棋 07-9-17 15:18

打日記時字體其他效果:
請打日記時click "edit html"將code放入。
發光字

<style>#glowtext{filter:glow(color=white,strength=3);
width:100%;}</style><SCRIPT LANGUAGE="javascript">
function glowit(which){if (document.all.glowtext[which].filters[0].strength==9)
document.all.glowtext[which].filters[0].strength=6
else
document.all.glowtext[which].filters[0].strength=9
}function glowit2(which){if (document.all.glowtext.filters[0].strength==9)
document.all.glowtext.filters[0].strength=6
else
document.all.glowtext.filters[0].strength=9}function startglowing(){if (document.all.glowtext&&glowtext.length){for (i=0;i<glowtext.length;i++)eval(setInterval("glowit(+i+)",150))}else if (glowtext)setInterval("glowit2(0)",150)}if (document.all)window.onload=startglowing
</SCRIPT><span id="glowtext"><font size="5" color="red">

打字之地方

</font></span>
------------------------------------------------------------------------------------------------

陰影字。

<span style="height:1;filter:shadow(color= white);"><font color=skyblue size=5>字</font></span>
size=5 等如字型大小
color= 位置改顏色
------------------------------------------------------------------------------------------------

d字由左至右郁<marquee direction=right><font size=4 color=blue>字</font></marquee>right 可轉left(左)
------------------------------------------------------------------------------------------------

變粗::<strong> 字 </strong>   
轉色::<font color=色碼> 字 </font>
變大::<font size=大細1-7> 字 </font>
------------------------------------------------------------------------------------------------


工具列、狀態列走字:
左右移動:
<script language="javascript">
var x = 0
var speed = 100
var text = "字句"
var course = 127
var text2 = text
function Scrollforward() {
window.status = text2.substring(0, text2.length)
if (course < text2.length) {
setTimeout("Scrollback()", speed)
}else {text2 = " " + text2
setTimeout("Scrollforward()", speed);
}}function Scrollback() {
window.status = text2.substring(x, text2.length)
if (text2.length - x == text.length) {text2 = text
x = 0
setTimeout("Scrollforward()", speed);}else {x++
setTimeout("Scrollback()", speed);}}Scrollforward()
</script>

var speed = 100 係速度。

放係Input your own Header HTML
------------------------------------------------------------------------------------------------

慢慢向左去~


<SCRIPT Language="javascript">
msg = " plz dun copy anythings ";
timeID = 20;stcnt = 26;wmsg = new Array(63);wmsg[0]=msg;blnk = "             ";for (i=1; i<62; i++){b = blnk.substring(0,i);wmsg="";for (j=0; j<msg.length; j++) wmsg=wmsg+msg.charAt(j)+b;}function wiper(){if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];if (stcnt-- < -10) stcnt=11;status = str;clearTimeout(timeID);timeID = setTimeout("wiper()",100);}wiper()</SCRIPT>
放係Input your own Header HTML

棋棋 07-9-17 15:19

1.變色框邊
<SCRIPT LANGUAGE="javascript">
colours=new Array('ff00ff','00ff00','ff9900','ff0000','00ffff','00ff66','0000ff')
function gs(){
var clrPos=Math.floor(Math.random()*colours.length)
with (window.document.body.style){
borderWidth=14;
borderstyle='solid';
borderColor=colours[clrPos];}}
if (document.all)window.document.body.onscroll=gs;
</SCRIPT>

2.可選歌之音樂盒
<bgsound id=bs><select onChange="bs.src=this.value" name="select" class="w" size="1"style="background-color:skyblue">
<option>選首你喜歡的音樂</option>
<option value="網址">歌名
<option value="網址">歌名
</select>

3.隨機播放器
<SCRIPT LANGUAGE="javascript">
var random=Math.floor(5*Math.random()+1)
var str
if (random==1){music="音樂網址"; str="歌名";}
if (random==2){music="音樂網址"; str="歌名";}
if (random==3){music="音樂網址"; str="歌名";}
if (random==4){music="音樂網址"; str="歌名";}
if (random==5){music="音樂網址"; str="歌名";}

document.write('<embed src='+music+' width=280 height=44 loop=true autostart=true controls=smallconsole><br>')
var random=document.write("<font size=3 color=white>正在播放 →</font><font size=3 color=blue> "+str+" </font>")
</SCRIPT>

4.隨機背景圖
<script language=javascript>
var pic=new Array(6)
pic[0]="圖片網址"
pic[1]="圖片網址"
pic[2]="圖片網址"
pic[3]="圖片網址"
pic[4]="圖片網址"
pic[5]="圖片網址"

var newdate=new Date()
var getpic=newdate.getSeconds()%pic.length
document.write('<body background='+pic[getpic]+' bgproperties=fixed>')
</script>

5.選擇背景圖
<font face="標楷體" color="blue" style=font-size:20px><div style=width:260;filter:shadow(color=orange,direction=35)>選擇背景圖</div></font>

<SELECT onChange="document.body.style.background=this.options[this.selectedIndex].value">
<OPTION value="url(網址)">主題名字
<OPTION value="url(網址)">主題名字
<OPTION value="url(網址)">主題名字
</select>

6.滑鼠變十字線
<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>

棋棋 07-9-17 15:20

7.滑鼠飄圖
<script language="javascript">
Image0=new Image();
Image0.src="圖片網址";
Amount=10;
Ymouse=-50;
Xmouse=-50;
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
rate=new Array();
grow=new Array();
Step=new Array();
Cstep=new Array();
nsSize=new Array();
ns=(document.layers)?1:0;
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
Ymouse=(document.layers)?evnt.pageY-20:event.y-20;
Xmouse=(document.layers)?evnt.pageX:event.x;}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
for (i=0; i < Amount; i++){
Ypos=Ymouse;
Xpos=Xmouse;
Speed=Math.random()*4+1;
Cstep=0;
Step=Math.random()*0.1+0.05;
grow=8;
nsSize=Math.random()*15+5;
rate=Math.random()*0.5+0.1;}
if (ns){
for (i = 0; i < Amount; i++){
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize+" height="+nsSize+"></LAYER>");}}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=90)">');}
document.write('</div></div>');}
function MouseBubbles(){
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed*Math.sin(270*Math.PI/200);
sx = Speed*Math.cos(Cstep*4);
Ypos+=sy;
Xpos+=sx;
if (Ypos < -40){
Ypos=Ymouse;
Xpos=Xmouse;
Speed=Math.random()*6+4;
grow=8;
nsSize=Math.random()*15+5;}
if (ns){
document.layers['sn'+i].left=Xpos+wscrll;
document.layers['sn'+i].top=Ypos+hscrll;}
else{
si.style.pixelLeft=Xpos+wscrll;
si.style.pixelTop=Ypos+hscrll;
si.style.width=grow;
si.style.height=grow; }
grow+=rate;
Cstep+=Step;
if (grow >24) grow=24;}
setTimeout('MouseBubbles()',10);}
MouseBubbles();
</script>

8.滑鼠帶六幅圖
<DIV id=dot0
style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px; visibility: hidden"><img
src="圖"></DIV>
<DIV id=dot1 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<DIV id=dot2 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<DIV id=dot3 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<DIV id=dot4 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<DIV id=dot5 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<DIV id=dot6 style="HEIGHT: 15px; POSITION: absolute; WIDTH: 15px"><img
src="圖"></DIV>
<SCRIPT language=javascript>
var nDots = 7;
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
var Xpos = 0;
var Ypos = 0;
var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
var followmouse = true;
var dots = new Array();
init();
function init(){var i = 0;
for (i = 0; i < nDots; i++) {
dots = new dot(i);}if (!isNetscape) {
}for (i = 0; i < nDots; i++) {
dots.obj.left = dots.X;
dots.obj.top = dots.Y;}if (isNetscape) {
startanimate();} else {setTimeout("startanimate()", 3000);}}function dot(i) {
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) {
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");}}
function startanimate() {
setInterval("animate()", 20);}
function setInitPositions(dots){
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc.offsetLeft
startloc.offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc.offsetTop +
startloc.offsetParent.offsetTop + 2*DOTSIZE;}
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;}
function MoveHandler(e){
Xpos = e.pageX;
Ypos = e.pageY;
return true;}
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop; }
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;} else {
document.onmousemove = MoveHandlerIE;}
function vec(X, Y){
this.X = X;
this.Y = Y;}
function springForce(i, j, spring){
var dx = (dots.X - dots[j].X);
var dy = (dots.Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;}}
function animate() {
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos;
start = 1;}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);}
var resist = new vec(-dots.dx * RESISTANCE,
-dots.dy * RESISTANCE);
var accel = new vec((spring.X + resist.X)/ MASS,
(spring.Y + resist.Y)/ MASS + GRAVITY);
dots.dx += (DELTAT * accel.X);
dots.dy += (DELTAT * accel.Y);
if (Math.abs(dots.dx) < STOPVEL &&
Math.abs(dots.dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots.dx = 0;
dots.dy = 0;}
dots.X += dots.dx;
dots.Y += dots.dy;
var height, width;
if (isNetscape) {
height = window.innerHeight + document.scrollTop;
width = window.innerWidth + document.scrollLeft;
} else {
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;}
if (dots.Y >= height - DOTSIZE - 1) {
if (dots.dy > 0) {
dots.dy = BOUNCE * -dots.dy;}
dots.Y = height - DOTSIZE - 1;}
if (dots.X >= width - DOTSIZE) {
if (dots.dx > 0) {
dots.dx = BOUNCE * -dots.dx;}
dots.X = width - DOTSIZE - 1;}
if (dots.X < 0) {
if (dots.dx < 0) {
dots.dx = BOUNCE * -dots.dx;}
dots.X = 0;}
dots.obj.left = dots.X;
dots.obj.top = dots.Y; }}</SCRIPT>

9.滑鼠帶彈性圖
<style>
v\:* {BEHAVIOR: url(#default#VML)}
</style>
<SCRIPT language="javascript1.2">
var stringcolor="white"
var ballsrc="圖片網址"
if (document.all&&window.print){
document.write('<IMG id=Om style="LEFT: -10px; POSITION: absolute" src="'+ballsrc+'">')
ddx=0;ddy=0;PX=0;PY=0;xm=0;ym=0
OmW=Om.width/2;OmH=Om.height/2
}function Ouille(){
x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100))
y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100))
Om.style.left=x-OmW
Om.style.top=y-OmH
elastoc.to=x+","+y
elastoc.strokecolor=stringcolor
setTimeout("Ouille()",1)   
}function momouse(){
xm=window.event.x+5
ym=window.event.y+document.body.scrollTop+15
elastoc.from=xm+","+ym
}if(document.all&&window.print){
code="<v:line id=elastoc style='LEFT:0;POSITION:absolute;TOP:0' strokeweight='1.5pt'></v:line>"} else {
code="<v:group style='LEFT:-10;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' coordsize='21600,21600'><v:line id=elastoc style='LEFT:0;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' strokeweight='1.5pt'></v:line></v:group>"}
if(document.all&&window.print){
document.body.insertAdjacentHTML("afterBegin",code)
document.onmousemove=momouse
Ouille()}
</SCRIPT>

10.右鍵只鎖圖片
<SCRIPT Language="javascript">
var clickmessage="WT DO U DO?!"
function disableclick(e) {if (document.all) {if (event.button==2||event.button==3) {if (event.srcElement.tagName=="IMG"){alert(clickmessage);
return false;}}}if (document.layers) {if (e.which == 3) {alert(clickmessage);return false;}}}function associateimages(){for(i=0;i<document.images.length;i++)document.images.onmousedown=disableclick;}if (document.all)document.onmousedown=disableclick
else if (document.layers)associateimages()</SCRIPT>

11.鎖滑鼠右鍵及防highlight

<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">

12.鎖滑鼠右鍵〔沒有對話方塊彈出〕
<body oncontextmenu="window.event.returnvalue=false">

13.捲軸顏色
第一色:捲軸邊頂色
第二色:拉的位置中間顏色
第三:捲軸底邊色
第四:捲軸上邊最邊色
第五:三角形箭咀色
第六:捲軸底色
第七:最底邊邊色
<style type="text/css">
BODY {scrollbar-highlight-color: blue;
scrollbar-face-color: ORANGE;
scrollbar-shadow-color: YELLOW;
scrollbar-3dlight-color: white;
scrollbar-arrow-color: red;
scrollbar-track-color: yellow;
scrollbar-darkshadow-color: purple;}</style>

棋棋 07-9-17 15:20

14.滑鼠帶彩色字加陰影
<style>.spanstyle {position:absolute;visibility:visible;top:-50px;font-size:20pt;font-family:Verdana;filter:glow(color=white,strength=2)">}</style><BODY onload=javascript:pageonload()><SCRIPT language=javascript>
var message="字";
var x,y;
var step=28;
var flag=0;message=message.split("");var xpos=new Array();for (i=0;i<=message.length-1;i++) {xpos=-50;}var ypos=new Array();
for (i=0;i<=message.length-1;i++) {ypos=-50;}function handlerMM(e) {x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX+20;y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;flag=1;}function makesnake() {if (flag==1 && document.all) {for (i=message.length-1; i>=1; i--) {xpos=xpos[i-1]+step;ypos=ypos[i-1];}xpos[0]=x+step;ypos[0]=y;for (i=0; i<=message.length-1; i++) {var thisspan = eval("span"+(i)+".style");thisspan.posLeft=xpos;thisspan.posTop=ypos;thisspan.color=Math.random() * 255 * 255 * 255 + Math.random() * 255 * 255 + Math.random() * 255;}}else if (flag==1 && document.layers) {for (i=message.length-1; i>=1; i--) {xpos=xpos[i-1]+step;ypos=ypos[i-1];}xpos[0]=x+step;ypos[0]=y;for (i=0; i<message.length-1; i++) {var thisspan = eval("document.span"+i);thisspan.left=xpos;thisspan.top=ypos;thisspan.color=Math.random() * 255 * 255 * 255 + Math.random() * 255 * 255 + Math.random() * 255;}}}</SCRIPT><SCRIPT language=javascript> function pageonload() { makesnake(); window.setTimeout("pageonload();", 2); } </SCRIPT>
<SCRIPT language=javascript> for (i=0;i<=message.length-1;i++) { document.write("<span id=span"+i+" class=spanstyle>");
document.write(message); document.write("</span>"); } if (document.layers) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; </SCRIPT>

15.彩色捲軸
<SCRIPT language="JScript">
var scrollPct, prevStep, nextStep, interStep
steps = new Array();
steps[0] = new Array(128,128,128);
steps[1] = new Array(255,0,0);
steps[2] = new Array(255,255,0);
steps[3] = new Array(0,255,0);
steps[4] = new Array(0,255,255);
steps[5] = new Array(0,0,255);
steps[6] = new Array(255,0,255);
steps[7] = new Array(255,0,0);
steps[8] = new Array(255,255,255);
function newColor(chan) {
var i=Math.floor(steps[prevStep][chan]+interStep*(steps[nextStep][chan]-steps[prevStep][chan]));return i;}function scrollFunk() {
scrollPct=(steps.length-1)*document.body.scrollTop/(document.body.scrollHeight-document.body.clientHeight);
prevStep=Math.floor(scrollPct);nextStep=Math.ceil(scrollPct);
interStep=scrollPct-prevStep;var newRGB="rgb("+newColor(0)+","+newColor(1)+","+newColor(2)+")";var invRGB="rgb("+(255-newColor(0))+","+(255-newColor(1))+","+(255-newColor(2))+")";if (document.body.style.scrollbarTrackColor != null) {
document.body.style.scrollbarFaceColor=newRGB;
document.body.style.scrollbarTrackColor=invRGB;
}}window.onscroll=scrollFunk;
//--></SCRIPT>

16.停留秒數
<SPAN style='WIDTH:400;FONT-SIZE:12pt;COLOR:blue;filter:Glow(Color=white,Strength=10)'>
<form name="d">您已經停留了 <input style="font-size:10pt" type="text" size="6" name="d2"> 秒</form></font>
<SCRIPT Language="javascript">
var milisec=0
var seconds=0
document.d.d2.value='0'
function display(){
if (milisec>=9){
milisec=0
seconds+=1}else
milisec+=1
document.d.d2.value=seconds+"."+milisec
setTimeout("display()",100)
}display()</SCRIPT></SPAN>

17.小型地震
<script>
function shake(n) {
if (self.moveBy){
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}} } }shake(5);</script>

18.背景音樂〔這語法不會顯示播放器出來〕
<bgsound src="音樂網址" loop="-1">

19.告別視窗
<script language="javascript">
function UserExit(){
alert("拜拜");
}</script>
<body onUnload="UserExit()">

20.透明圖片
<img src="圖片網址" border="0" style=" background-color:shadowcolor; filter:alpha(opacity=40);">

棋棋 07-9-17 15:20

透明篇

1.透明圖

<img style="FILTER: alpha(opacity=透明度)" onmouseout=makevisible(this,1) src="圖片的網址">

2.日記內容有框加背景圖

<style type="text/css">
table.blogbody {
/* this edits the other the place where the blog is */;
family-font: verdana;
border: 粗度px double #色;
width:闊px;
background-image:url(' 背景圖 ');
FILTER: alpha(opacity=透明度);
</style>

ps:虛線就dashed..點點就dotted..雙線就double

3.框住成個日記   有捲軸

<DIV align="center" valign="middle" style="BORDER-RIGHT: #色 2px dotted; BORDER-TOP: #色 2px dotted; FILTER: alpha(opacity=透明度); OVERFLOW: auto; BORDER-LEFT: #色 2px dotted; WIDTH: 框闊px; BORDER-BOTTOM: #色 2px dotted; HEIGHT: 框高px; BACKGROUND-COLOR:#色">

4.改晒成個面板都係透明
改Opacity,愈細愈透

<style>
table{filter:Alpha(Opacity=50)}
</style>

5.Profile框透明

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

6.自創   得日記內容d字透明

<style type="text/css">
table.blogbody {
/* this edits the other the place where the blog is */filter:Alpha(opacity=60); }
</style>

棋棋 07-9-17 15:21

特別篇

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]];
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-->
<!--[url]http://www.xanga.com/anti_fukin_social--[/url]></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.width == "200"){
tds.parentNode.appendChild(tds.cloneNode(true));
tds.parentNode.removeChild(tds);
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.innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){
if(!tds.parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
table = tds.parentNode.parentNode.parentNode.parentNode.parentNode;
stuff = tds.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.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>

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

棋棋 07-9-17 15:21

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)
progidXImageTransform.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>

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係圖片名)
呢個係係格仔入面加圖做背景~

棋棋 07-9-17 15:21

滑鼠變七彩流星 code
擺係website stats*
<script language="javascript">
<!--
if (document.all){
//To add more stars simply add more colours in below array!!
colours=new Array('#0000E1','#E6EAD5','#DDFF78','#FF2828','#C675EC','#FFD350','#B9A03A')

//Alter nothing below!!
amount=colours.length;
YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,step=0.2,currStep=0,my=0,mx=0;
document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');
for (i=0; i < amount; i++)
document.write('<div id="iestars" style="position:absolute;top:0px;left:0px;height:50px;width:50px;font-family:Courier New;font-size:5px;color:'+colours+';padding-top:20px;text-align:center">.</div>');
document.write('</div></div>');
ini=1;
gstep=1;
function iMouse(){
my=event.y;mx=event.x;
}
document.onmousemove=iMouse
function dim(){
ini-=gstep;
dt=setTimeout('dim()',10);
if (ini < 2){
clearTimeout(dt);
glow();
}
}
function glow(){
ini+=gstep;
gt=setTimeout('glow()',10);
if (ini > 14){
clearTimeout(gt);
dim();
}
}
function stars(){
ie.style.top=document.body.scrollTop;
for (i=0; i < amount; i++)
{
var layer=iestars.style;
layer.filter='glow(color='+colours+', strength='+ini+')';
layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
}
currStep+=step;
}
function delay(){
Ydelay = YgetDelay+=(my-YgetDelay)*1/20;
Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;
stars();
setTimeout('delay()',10);
}
delay();
glow();
}
//-->
</script>

棋棋 07-9-17 15:22

xanga訪客記錄系統(可check ip)






Got ‘Em [url]http://www.gottem.net/[/url]
Suhock [url]http://suhock.net/xanga/logs/[/url]
Site meter [url]http://sitemeter.sitetoolbox.com/[/url]
Fingerprintx [url]http://www.fingerprintx.com/[/url]
MyXSpy [url]http://www.myxspy.com/[/url]
GeTracker [url]http://getracker.com/news.php[/url]
Fishcan [url]http://www.fishcan.com/[/url]
ULSP [url]http://zh.ulsp.info/what.php[/url] [呢個website有緊體中文]
上面全部websites可以做到既功能:
# 記錄 xanga id + 國家,
# 記錄 ip,
# 網絡供應商,
# 總到訪次數,
# 每日到訪次數,
# 到訪網址,
# 上頁到訪網址,
# 瀏覽器種類

XTracker [url]http://www.xtracker.us/[/url]
# 同上面website都一樣 但多左一個功能:
   # 佢可以幫你改你time zone等等so其他人難d track到你

I-Ban-You [url]http://www.i-ban-you.com/[/url]
#同上面website都一樣 但多左d功能:
  # block 你唔鐘意d人既xanga id so 佢地睇唔到你既xanga
  # 指定d人要登入先睇到你既xanga
  # 用password黎lock 你既xanga [同xanga lock有d似]

StatCounter [url]http://www.statcounter.com/[/url]
RiteCounter [url]http://www.ritecounter.com/[/url]
# 多數比d公司用黎check visitor的ip 但都可以比xanga用
# 只可以track 到visitor既 ip, 到訪網址, 上頁到訪網址, 每日到訪次數 等等 但track唔到visitor既xanga資料(e.g. id)

Silly:]Ka 07-9-30 12:58

好好好好好ar..
sup卜你喔!!!!
:victory: :victory: :victory: :victory:
頁: [1]
查看完整版本: xanga語法大集合ar!!