1.music box
<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: bg顏色; background-repeat: repeat; background-attachment: scroll; width: 195; color: 字顏色; font-face: verdana; height: 23; background-position: 0%" name="playlist" size="1">
<option value="0">歌名1</option>
<option value="1">歌名2</option>
<option value="2">歌名3</option>
<option value="3">歌名4</option>
<option value="4">歌名5</option>
<option value="5">歌名6</option>
</select><p align="按鈕位置e.g.right"><input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF 3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR: #FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff" onClick="play(document.forms['form'].playlist);" type=button value=Play name=darkplay>
<input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF 3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR: #FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff" onClick="document.darkplayer.pause(); playstate=2;" type=button value=Pause name=darkpause>
<input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF 3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR: #FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff" onClick="document.darkplayer.stop(); playstate=2;" 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]="歌1既網址"
songs[1]="歌2既網址"
songs[2]="歌3既網址"
songs[3]="歌4既網址"
songs[4]="歌5既網址"
songs[5]="歌6既網址"
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>
===========================================
2.框框入面既走馬燈
<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>
</tr></table>
================================================
3.更改游標
<STYLE>
BODY {
CURSOR: url('游標網址');
}
A:link {
CURSOR: url('游標網址');
}
A:visited {
CURSOR: url('游標網址');
}
</STYLE>
=================================================
4.張日期D字整大隻D
<style type="text/css">
div.blogheader, .caption {
/* EDIT THE DATES */
font-family : '字形' ;
font-size : 字ge大小;
text-align: 置中/左/右;
}
</style>
==================================================
5.張圖片由淡化變清晰
<img src="圖片網址" border="0" onMouseover="high(this)" onMouseout="low(this)" style="filter: alpha(opacity=50)">
6.可以張profile整寬d
<style type="text/css">
table.left { border: 粗px dashed #色; width:你想要既闊px}
</style>
====================================================
7.係圖加有框+透明
<style type="text/css">
table.blogbody {
background-color: #顏色;
style;border:闊度px double; border-color:#顏色;
filter:Alpha(opacity=50);
}
</style>
=================================================
8.成版乜都透明
<STYLE>
table{filter:Alpha(Opacity=60)}
</STYLE>
===================================================
9.鎖右鍵和鍵盤
<SCRIPT language=JavaScript>
<!-- begin
document.onmousedown=click;
document.onkeydown=click;
if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=click;
if (document.layers) window.captureEvents(Event.KEYDOWN); window.onkeydown=click;
function click(e){
if (navigator.appName == 'Netscape'){
if (e.which != 1){
alert("是不是連鍵盤都無法使用啦?");
return false;}}
if (navigator.appName == "Microsoft Internet Explorer"){
if (event.button != 1){
alert("是不是連鍵盤都無法使用啦?");
return false;}}}
// end -->
</SCRIPT>
==================================================
10.日期變中文
<!-- begin code provided by createblog.com -->
<script type="text/javascript">
//
// ?003 EasterEgg,
訪客無法瀏覽此圖片或連結,請先 註冊 或 登入會員 。
// Changes date text
// For use at Xanga only.
//
// Info at
訪客無法瀏覽此圖片或連結,請先 註冊 或 登入會員 。
//
function replaceWordsDates()
{
// ***add the Months or Days you wish to replace below
var oldWordsDates = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
"Monday,",
"Tuesday,",
"Wednesday,",
"Thursday,",
"Friday,",
"Saturday,",
"Sunday,",
"2002",
"2003",
"2004",
"2005",
"2006",
"2007",
"2008",
"01, ",
"02, ",
"03, ",
"04, ",
"05, ",
"06, ",
"07, ",
"08, ",
"09, ",
"10, ",
"11, ",
"12, ",
"13, ",
"14, ",
"15, ",
"16, ",
"17, ",
"18, ",
"19, ",
"20, ",
"21, ",
"22, ",
"23, ",
"24, ",
"25, ",
"26, ",
"27, ",
"28, ",
"29, ",
"30, ",
"31, "
);
// *** add the replacing Months or Days below
var newWordsDates = new Array(
"x JANUARY",
"x FEBRUARY",
"x MARCH",
"x APRIL",
"x MAY",
"x 6",
"x JULY",
"x AUGUST",
"x SEPTEMBER",
"x OCTOBER",
"x NOVEMBER",
"x DECEMBER",
"_MONDAY ",
"_TUESDAY ",
"_WEDNESDAY ",
"_THURSDAY ",
"_FRIDAY ",
"_SATURDAY ",
"_SUNDAY ",
" 2002",
" 2003",
" 2004",
" 2005",
" 2006",
" 2007",
" 2008",
"o1, ",
"o2, ",
"o3, ",
"o4, ",
"o5, ",
"o6, ",
"o7, ",
"o8, ",
"o9, ",
"1o, ",
"11, ",
"12, ",
"13, ",
"14, ",
"15, ",
"16, ",
"17, ",
"18, ",
"19, ",
"2o, ",
"21, ",
"22, ",
"23, ",
"24, ",
"25, ",
"26, ",
"27, ",
"28, ",
"29, ",
"3o, ",
"31, "
);
allDivData = document.getElementsByTagName('div');
var collections = new Array(allDivData);
for (var k = 0; k < collections.length; ++k )
{
for (var i = 0; i < collections[k].length; ++i )
{
if (collections[k].innerHTML.indexOf('DIV') == -1)
{
for ( var n = 0; n < oldWordsDates.length; ++n )
{
var indx = collections[k].innerHTML.indexOf(oldWordsDates[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k].innerHTML.indexOf(oldWordsDates[n]);
replacement = collections[k].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);
collections[k].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWordsDates();
</script>
11.背景隨機音樂
<SCRIPT Language="JavaScript">
tips = new Array(4);
tips[0] = " 網址";
tips[1] = " 網址";
tips[2] = " 網址";
tips[3] = " 網址";
tips[4] = " 網址";
tips[5] = " 網址";
index = Math.floor(Math.random() * tips.length);
document.write("<EMBED SRC=" + tips[index] + " autostart=true width=0 height=0 loop=true hidden=TRUE></EMBED>");
</SCRIPT>
==================================================
12.sub d人名點改做中文
<!--Get this code at
訪客無法瀏覽此圖片或連結,請先 註冊 或 登入會員 。>
<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, "你想改既名");
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>
====================================================
13.Blogring加scrollbar
<!-- begin code provided by createblog.com -->
<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('Blogrings') != -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>
<!-- end code provided by createblog.com -->
==============================================
14.del 'sign in guestbook', 'read my profile' and 'member since' : header :
<!-- Begin HTML Script provided by Blogring.net -->
<style type="text/css">
#profInterests, #ProfileModule1_hplProfile, #ProfileModule1_hplGuestbook, #profMember, #ProfileModule1_lblRegister {display: none}
</style>
<!-- End HTML Script provided by Blogring.net -->
=============================================
15.remove header(review果行) : header :
<!-- begin code provided by createblog.com -->
<style type="text/css">
table.navigation, table.footer { display:none; }
</style>
<!-- end code provided by createblog.com -->
16.remove left module : header :
<style type="text/css">
.mainleft, table.left, table.left TH, table.left TD, .leftmoduleborder {display: none;};
</style>
==============================================
17.自製layout <header>
<style type="text/css">
body {
background-color: #FFFFFF;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-face-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
}
.left, .blogbody, table.footer, .standard, .leftmodulefontcolor, td, p {
/* edits main text */
font:normal 11px arial;
line-height:10px;
color:#FF49A7;
letter-spacing:0px;
text-align:justify;
}
table.footer TD {
/* this makes the footer at the bottom centered */
/* leave it alone unless you know what to do*/
text-align: center;
}
div.blogheader, .caption {
/* edits the dates */
font-family:impact;
text-transform:lowercase;
font-size:24px;
line-height:10px;
font-weight:normal;
color:#FF49A7;
letter-spacing:0px;
background-color: #ffffff;
text-align: center;
}
a:link, .footernav.link, a.footernav:link, a.footernav:active {
/* edits all links */
color:#FF49A7;
text-decoration: none;
}
a:visited, a.footernav:visited, {
/* edits the links that the user has visited */
color:#000000;
text-decoration: none;
}
a:hover {
/* edits when user mouseovers the links */
color:#FA4E82;
cursor: crosshair;
text-decoration: none;
}
input, select, textarea, .textfield, .button {
/* this edits the buttons, dropdowns, etc. */
border: 1px solid #c0c0c0;
font:normal 11px arial;
background-color: #FFFFFF;
letter-spacing:0px;
color: #000000;
}
table.left {
/* this edits the menu module */
border: 1px solid #c0c0c0;
width:160px;
background-color: #000000;
}
table.blogbody {
/* this edits the other the place where the blog is */
border: 0px solid c0c0c0;
background-color: #ffffff;
width:400px;
}
table.left th {
/* on your menu module, this edits the title part of it */
/* like BLOGRINGS, POSTING CALENDAR, etc */
background-image: url();
background-color: #000000;
font: bold 11px arial;
text-transform: lowercase;
color: #FFFFFF;
border: none;
}
table.left TD {
/* on your menu module, this edits the body part of it */
background-image: url();
background-color: #FFFFFF;
border: none;
}
table.search TD, table.search, table.announcements {
/* border of search bar (if you have it) */
background-color: #FFFFFF;
border: 1px solid #FFFFFF;
}
table.search TD, table.announcements TH {
/* this should be left alone */
/* unless you know what to do */
border: 0px solid #c0c0c0;
}
table.navigation, table.main, table.footer {
/* the width of your blog with modules */
width: 500px;
}
hr {
/* horizontal divider */
border: 1px solid #FF49A7;
}
</style>
=========================================================
18.xanga別人到訪記錄(WEBSITE)
<script>
/* Change your options here.
See the documentation at
訪客無法瀏覽此圖片或連結,請先 註冊 或 登入會員 。
for more info. */
var show = true;
var title = "My Stalkers";
var before = "My Blogrings";
var sortby = "date";
var order = "desc";
var limit = 0;
/* Don't change anything beyond this point, unless you know
what you're doing (not that you would pay any attention
to this warning if you do know what you're doing) */
function getElement(id) {
if(document.all) {
return document.all[id];
} else {
return document.getElementById(id);
}
}
function getUser() {
var user = '';
for (var i=0; i<document.links.length; i++) {
if (document.links.href.substring(0,38) ==
"http://www.xanga.com/private/home.aspx") {
var link = document.links;
if (link.innerText) {
user = link.innerText;
} else if (link.text) {
user = link.text;
}
break;
}
}
return user;
}
var tagname = 'script';
function getOwner() {
var url = document.URL;
var b = url.indexOf("?user=");
if (b==-1)
b = url.indexOf("&user=");
if (b==-1)
return getUser();
b += 6;
var e = url.indexOf("&", b);
if (e==-1)
e = url.length;
return url.substring(b, e);
}
</script>
=====================================================
19.d link變蒙
<style type="text/css">
/*
Blurred Hyperlinks - xanga.com/add_ons
- use only 45, 90, 135, 180, 225, 270, 315, or 360 for DIRECTION
- STRENGTH means the blur power
- do not change or remove HEIGHT:0 and add="0"
*/
a:hover {filter:blur(add="0",direction="90",strength="7"); height:0;};
</style>
=====================================================
20.右鍵變最愛(website)
<script Language="JavaScript">
function click() {
if (event.button==2) {
window.external.addFavorite('你果xanga網址','名')
}
}
document.onmousedown=click
</SCRIPT>
[
本帖最後由 philxyz0316 於 2007-4-8 20:32 編輯 ]