I-See 論壇 » 網上日記區 » XANGA專區 » ---*綜合XANGA語法*--- (更新@24/1/06)

2006-1-24 12:56 AM 牙帽''
---*綜合XANGA語法*--- (更新@24/1/06)

[box=#FFFFCC][size=4][color=Maroon]CTRL+F 可自動SHERCH字,方便快捷[/color][/size][/box]

[box=#CCCCCC]XANGA教室請切換完整版來瀏覽圖片和連結
訪器記錄請切換完整版來瀏覽圖片和連結
訪客記錄儀請切換完整版來瀏覽圖片和連結[/box]
[box=#CCFFFF]1.改TITLE(放HEADER)

<script type='text/javascript'>
document.title = ('title');
</script> [/box]
[box=#CCCCFF]2.左邊舊野有BACKGROUND(放HEADER)

<STYLE type="text/css">
<!--
table.left th { background-image:url('http://') }
table.left td { background-image:url('http://') }
//-->
</STYLE>[/box]
[box=#FFCCFF]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"> [/box]
[box=#FFCCCC]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徨珂 [/box]
[box=#FFFFCC]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"> [/box]
[box=#CCFFCC]6.每篇日記都有個框(放HEADER)

<style>
<!--
.blogbody {border:2px dashed FFFFFF}
-->
</style>[/box]
[box=#FFFFFF]7.別人睇完你的日記後,彈出BYEBYE視窗(放HEADER)

<script language="JavaScript">
function UserExit(){
alert("你想出ge文字");
}</script>
<body  onUnload="UserExit()">[/box]
[box=#CCCCCC]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> [/box]
[box=#9999FF]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 -->[/box]
[box=#FF99FF]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">[/box]
[box=#FFCC99]11.整走廣告時所留低的空白位(放WEBSITE)

<STYLE>
/*
transparent blog
*/

.blogbody, {


/* opacity maximum 100 */
filter: alpha(style=0,opacity=透明度);
}
</STYLE> [/box]
[box=#FF9999]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>[/box]
[box=#FFFF99]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> [/box]
[box=#CCFFFF]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>[/box]
[box=#CCCCFF]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>[/box]
[box=#FFCCFF]16普通加圖

<IMG SRC="圖址">[/box]
[box=#FFCCCC]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 = 速度[/box]
[box=#FFFFFF]18.圖片透明化
<img style="FILTER: alpha(opacity=50)" onmouseout=makevisible(this,1) src="圖片的網址">[/box]

[box=#CCCCCC]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 ( ) 內既數字[/box]
[box=#9999FF]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中文字可自行修改[/box]
[box=#FF99FF]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就甘改數字(粗幼度)和色碼就得架拉![/box]
[box=#FF9999]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一樣[/box]
[box=#FFCC99]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色 , 分隔色碼[/box]
[box=#99FF99]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* [ 密碼正確上面][/box]

[box=#CCFFFF]25.密碼入日記
<script language="JavaScript">
<!--
var keyword = " 密碼 "
function checkKey(){
var key = prompt(" 提示問題 "," 打密碼地方GE字 ")
if(keyword != key)
history.go(0)
}
checkKey()
//-->
</script> [/box]

[box=#CCCCFF]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>[/box]
[box=#FFCCFF]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[[b]i[/b]].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">[/box]
[box=#FFCCCC]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>[/box]
[box=#FFFFCC]29.鎖滑鼠右鍵及防HIGHLIGHT

<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">[/box]

[box=#CCFFCC]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>[/box]

[box=#FFFFFF]31改TITLE名

<!-- Rename the window's name-->
<SCRIPT language=javascript>document.title=("你想要既名")
</SCRIPT>
<!-- Rename the window's name-->[/box]

2006-1-31 11:17 AM 淋:)
[quote]原帖由 [i]ar巧[/i] 於 2006-1-29 09:15 PM 發表
有好多無GA,,出唔到黎
>"< [/quote]
請唔好係到回POST

2006-2-4 08:23 PM ★藍天使★
真  係   好  似  唔  得  b o ! ! !

2006-2-11 07:58 AM Irene~
THX!好有用ar~~!!!!!!

2006-2-18 10:31 PM WAii`
好正呀 .. 好多都好有用呀 !!

2006-3-11 12:15 PM laib
我想問點解入口加圖唔得既?t^t

2006-3-21 06:55 PM cherri_0906yan
點解14同15都唔得既??十萬分火急呀!!

2006-4-8 11:51 AM 傻仔橙
thzzzzzzzzzzzzzzzzzzzzz........!!!!!!!!!!

2006-4-9 07:41 PM
正爆呀****
thz晒^^

2006-4-9 11:29 PM kathy1029
好多好有用呀!!THX!!!!!

2006-4-15 12:44 AM JENNY_1202
thz!好岩用...
>\/<

2006-4-22 01:50 PM wewill
有d都用唔到既...
不過都thx你...

2006-5-7 11:51 AM jadeso
Thank~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2006-5-13 02:56 PM karenia=]
嘩嘩嘩!∼
好多多ar!!∼
唔該曬ar!!

2006-5-14 11:46 AM LUVERHAYLEY
超正呀*suport你架..
想搵個d都用得到xddddddddddd

2006-5-17 05:36 PM KayiBobo
我整唔到'個人資料整左去右邊"個1個ar

2006-5-23 12:58 PM hettylai
有幾個想用都用唔到!唉…….............

2006-6-8 05:24 PM handsomegay
thank you very much i know how to do .

2006-6-8 05:24 PM handsomegay
thank you you i known it

2006-6-8 05:26 PM handsomegay
thanks i known it

頁: [1] 2 3 4


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