|
進階會員
  
- UID
- 29103
- 帖子
- 8
- 精華
- 0
- 積分
- 228
- 金錢
- 1616
|
2#
大 中
小 發表於 2006-12-26 12:00 AM 只看該作者
10.日期變中文
<!-- begin code provided by createblog.com -->
<script type="text/javascript">
//
// ?003 EasterEgg, http://www.xanga.com/easteregg
// Changes date text
// For use at Xanga only.
//
// Info at http://dorkette.net
//
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>
<!-- end code provided by createblog.com -->
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 http://help.xanga.com/replacelinks.htm//-->
<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 -->
|