牙帽''
(TANAKA REDHAT)
贊助會員
會員編號 2989
精華
1
積分 15734
帖子 6076
威望 85 點
I-See幣 476541 錢
GAME幣 165 個
MSN宣傳 546 次
性別
女
配偶 牙豆''
閱讀權限 220
註冊 2005-3-21
註冊天數 7186
狀態 離線
|
|
---*綜合XANGA語法*--- (更新@24/1/06)
CTRL+F 可自動SHERCH字,方便快捷
XANGA教室遊客無法瀏覽此圖片或下載點,請先註冊或登入會員。
訪器記錄遊客無法瀏覽此圖片或下載點,請先註冊或登入會員。
訪客記錄儀遊客無法瀏覽此圖片或下載點,請先註冊或登入會員。
1.改TITLE(放HEADER)
<script type='text/javascript'>
document.title = ('title');
</script>
2.左邊舊野有BACKGROUND(放HEADER)
<STYLE type="text/css">
<!--
table.left th { background-image:url('http://') }
table.left td { background-image:url('http://') }
//-->
</STYLE>
3.要個BOX BOX住個XANGA(放HEADER)
<DIV align="center" valign="middle" style="BORDER-RIGHT: #660000 1px solid; BORDER-TOP: #660000 1px solid; FILTER: alpha(opacity=100); OVERFLOW: auto; BORDER-LEFT: #660000 1px solid; WIDTH: 850px; BORDER-BOTTOM: #660000 1px solid; HEIGHT: 470px; BACKGROUND-COLOR:
#ffffff">
4.改SUBSCRIPTIONS人名(放HEADER)
<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 (/本身id/i)) links[l].innerHTML = str.replace (/本身id/i, "想變做既字");
else if (str.match (/本身id/i)) links[l].innerHTML = str.replace (/本身id/i, "想變做既字");
}
//-->
</script>
P.S如時常出現亂碼問題: 打下面句野落去篇日記到*
ㄐㄐ狟醱彆曆蜁?燴‵扂S樼騝氈墓y徨珂
5.要透明(放HEADER)
<DIV align="center" valign="middle" style="BORDER-RIGHT: #660000 1px solid; BORDER-TOP: #660000 1px solid; FILTER: alpha(opacity=100); OVERFLOW: auto; BORDER-LEFT: #660000 1px solid; WIDTH: 850px; BORDER-BOTTOM: #660000 1px solid; HEIGHT: 470px; BACKGROUND-COLOR:
#ffffff">
#ffffff">
6.每篇日記都有個框(放HEADER)
<style>
<!--
.blogbody {border:2px dashed FFFFFF}
-->
</style>
7.別人睇完你的日記後,彈出BYEBYE視窗(放HEADER)
<script language="JavaScript">
function UserExit(){
alert("你想出ge文字");
}</script>
<body onUnload="UserExit()">
8.Xanga 倒數你生日語法(放WEBSITE OR HEADER)
</tr><script language="JavaScript1.2">
var today = new Date;
var Future0 = new Date;
var BirthMonth = 你既生日月份(如果係一月=01,十月1=10);
var BirthDate = 你既生日日子(一號=01,十號=10);
var BirthYear = 你既出生年份(eg.1980);
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=#99CC33><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, " days until <font color=#99CC33>my <i>", age, ageend, "</i> birthday</font>");
else if (daysleftint == 1)
document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is tomorrow");
else if (today1 == future1)
document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is today");
else
document.write("passed");
</script><br>
9.一開xanga就彈隻公仔出黎 say hello9(放HEADER)
<!-- begin code provided by createblog.com -->
<Object ID=tsaiannie53441 ClassID=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F></Object>
<script language="JavaScript">
<!--
//
//edit at next section
var RoverID;
var RoverACS;
tsaiannie53441.Connected = true;
RoverLoaded = LoadLocalAgent(RoverID, RoverACS);
Rover = tsaiannie53441.Characters.Character(RoverID);
Rover.Show();
//list the actions below
//use Rover.Play to make it move
//use Rover.Speak to make it talk
Rover.Play("GetAttention");
Rover.Speak("WELCOME TO MY XANGA!");
Rover.Play("Acknowledge");
Rover.Speak("ENJOY!");
//do not edit below this line
Rover.Hide();
function LoadLocalAgent(CharID, CharACS) {
LoadReq = tsaiannie53441.Characters.Load(CharID, CharACS);
return(true);
}
//-->
</script>
<!-- end code provided by createblog.com -->
10.打日記時字體效果--發光字(放HEADER)
<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">
11.整走廣告時所留低的空白位(放WEBSITE)
<STYLE>
/*
transparent blog
*/
.blogbody, {
/* opacity maximum 100 */
filter: alpha(style=0,opacity=透明度);
}
</STYLE>
12.只show 3篇日記出黎(放HEADER)
<script>
// display three entries
// T CM xanga help
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>
13.整係果XANGA加卷軸(放HEADER)
<style>
body{
scrollbar-arrow-color: #000000;
scrollbar-3dlight-color: #999999;
scrollbar-highlight-color: #ffffff;
scrollbar-face-color: #999999;
scrollbar-track-color: #cccccc;
scrollbar-shadow-color: #666666;
scrollbar-darkshadow-color: #000000;
}
</style>
14.係SUBSCRiPti0NS LiSt 加 卷軸(放WEBSITE)
<script type="text/javascript">
function adjustSirListHeight()
{
// define the height of your SIR-list in the line below
var sirListHeight = '90px';
var allTables = document.getElementsByTagName('tbody');
for (i=0; i < allTables.length; i++)
{
if ((allTables.innerHTML.indexOf('Sites I Read') != -1) &&
(allTables.innerHTML.toUpperCase().indexOf('<TABLE') == -1))
{
sirlist = allTables.lastChild;
temp = sirlist.firstChild.innerHTML;
sirlist.removeChild(sirlist.firstChild);
td = document.createElement('td');
div = document.createElement('div');
div.style.width = '165px';
div.style.height = sirListHeight;
div.style.overflow = 'auto';
div.innerHTML = temp;
td.appendChild(div);
sirlist.appendChild(td);
break;
}
}
}
if (navigator.userAgent.indexOf('Mac') == -1)
if ((document.URL.indexOf('weblogs') == -1) &&
(document.URL.indexOf('guestbook') == -1) &&
(document.URL.indexOf('events') == -1) &&
(document.URL.indexOf('reviews') == -1))
adjustSirListHeight();
</script>
15.個人資料加卷軸(放HEADER)
<script type="text/javascript">
function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '120px';
var allTables = document.getElementsByTagName('tbody');
for (i=0; i < allTables.length; i++)
{
if ((allTables.innerHTML.indexOf('Profile') != -1) &&
(allTables.innerHTML.toUpperCase().indexOf('<TABLE') == -1))
{
sirlist = allTables.lastChild;
temp = sirlist.firstChild.innerHTML;
sirlist.removeChild(sirlist.firstChild);
td = document.createElement('td');
div = document.createElement('div');
div.style.width = '190px';
div.style.height = sirListHeight;
div.style.overflow = 'auto';
div.innerHTML = temp;
td.appendChild(div);
sirlist.appendChild(td);
break;
}
}
}
if (navigator.userAgent.indexOf('Mac') == -1)
if ((document.URL.indexOf('weblogs') == -1) &&
(document.URL.indexOf('guestbook') == -1) &&
(document.URL.indexOf('events') == -1) &&
(document.URL.indexOf('reviews') == -1))
adjustSirListHeight();
</script>
16普通加圖
<IMG SRC="圖址">
17.張圖上下左右郁
<marquee direction="down" height=100 width=100 scrollamount="2">
<img src=" 圖址">
<img src="圖址">
<img src="圖址">
<img src="圖址">
</marquee>
P.Sdirection = 你想d圖向上(up)、下(down)、左(left)、右(right)
height & width = 走動範圍大細
scrollamount = 速度
18.圖片透明化
<img style="FILTER: alpha(opacity=50)" onmouseout=makevisible(this,1) src="圖片的網址">
19.隨機背景圖(放INPUT Y0UR 0WN HTML)
<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>
P.S修改返圖片位置同埋 [ ] 入面既數字, array ( ) 內既數字
20.音樂篇(放HEADER)
<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 onchange="getNewSound()" size="1" name="music">
<option style="BACKGROUND-COLOR:purple;color:pink" >*選首您喜歡的音樂*</option>
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
<option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
</select>
</form>
P.S中文字可自行修改
21.立體框*1(放Input your own Header HTML)
<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>
P.S就甘改數字(粗幼度)和色碼就得架拉!
22.立體框*12(放Input your own Header HTML)
<style>
body{
border-right: 10px dotted;
border-top: 10px dotted;
border-left: 10px dotted;
border-bottom: 10px dotted;
border-color:#cccccc;
}</style>
P.S4條框邊的顏色一樣,但系粗幼5一樣
23.外框閃(放Input your own Header HTML)
<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>
P.S如果要加多D色 , 分隔色碼
24.PASSW0RD
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var pass1 = prompt('請輸入密碼(密碼是welcome):','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "welcome") {
alert('密碼正確!');
break;
}
testV+=1;
var pass1 =
prompt('密碼錯誤!請重新輸入:');
}
if (pass1!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</SCRIPT>
P.Spass1 果到系你既PW* [ 密碼正確上面]
25.密碼入日記
<script language="JavaScript">
<!--
var keyword = " 密碼 "
function checkKey(){
var key = prompt(" 提示問題 "," 打密碼地方GE字 ")
if(keyword != key)
history.go(0)
}
checkKey()
//-->
</script>
26.-改Date
<style>
<!--
.blogheader {color: #ffffff; font-size: 16pt; text-decoration: lowercase; font-weight:; padding-bottom: 3pt; text-align: left; letter-spacing:-1px; background:#transparent}
}.left, .blogbody, table.footer, .standard, .leftmodulefontcolor, td, p {
font:normal 10px georgia;
line-height:12px;
color:#ffffff;
letter-spacing:0.3px;
text-align:justify;
}
table.footer TD {
text-align: Justify;
}
-->
</style>
<style type="text/css">
table.blogbody {
background-color:transparent;
family-font: century gothic;
BORDER: #000000 1px solid;
width:500px;}
</style>
27.入口按圖進入(放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 = '圖既WWW';
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>
<body ONDRAGSTART="window.event.returnValue=false" ONCONTEXTMENU="window.event.returnValue=false" onSelectStart="event.returnValue=false">
<body oncontextmenu="window.event.returnValue=false">
28.將左邊既個人資料調去右邊
<script language="javascript">
// original by sean 遊客無法瀏覽此圖片或下載點,請先註冊或登入會員。
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>
29.鎖滑鼠右鍵及防HIGHLIGHT
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
30.日期加上圖片
<style type="text/css">
div.blogheader, .caption {
font-family: impact;
text-transform:uppercase;
font-size:23px;
line-height:30px;
font-weight:normal;
filter: alpha (opacity=100, finishopacity=0, style=2);
height: 1px;
background-color:#000000;
color:white;
letter-spacing:1px;
text-align: center;
background-image: url(網址);
}
</style>
31改TITLE名
<!-- Rename the window's name-->
<SCRIPT language=javascript>document.title=("你想要既名")
</SCRIPT>
<!-- Rename the window's name-->
|
|
I-See Forum @ All rights reserved. |
|
|
|