發新話題

[分享] 大量Xanga語法

大量Xanga語法

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 編輯 ]

TOP

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>

將xanga profile 左轉右面

<!-- begin code provided by createblog.com -->
<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>
<!-- end code provided by createblog.com -->

成個xanga d野相反方向(包括scrollbar)
<body ONCONTEXTMENU="return false" dir="rtl"><DIV DIR="LTR">

放Website Stats到*


==========================================================
框框住成個xanga同背景

<script language="javascript1.2">
if (document.all)
document.body.style.cssText="border:35 dotted #000000"
</script>

border=寬度,#xxxxxx=color
==========================================================


subscriptions 既背景有圖案

<style type="text/css">
<!--
table.left th { background-image:url(' 網址 '); }table.left td { background-image:url(' 網址 ') ;}
//-->
</style>

呢個code係成個profile都有background ....放係header就得架喇 ...

21.將游標轉圖
<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>

22.變色 ( 滑鼠指住日記時會光 d , 唔指時會暗 d )
<script language="JavaScript">
//Sets blog opacity (0-100)
opcty = 40
//Sets rollover opacity
msvropcty = 90;
////////////////////////////////////
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>


23.用 mouse 指住 link 時變色
<style type="text/css">
a:hover {
/* edits when user mouseovers the links */
color:#00AA00;
font:normal 11px Papyrus;
line-height:12px;
text-decoration:underline;
border-bottom: 10px dotted #000000;
height: 5px;
text-transform:uppercase;
letter-spacing:1px;
}
</STYLE>

將日記內容另加背景
<style type="text/css">
<!--
.blogbody {background:url('網址') repeat-y fixed ;
}
-->
</style>

24.<每篇日記都有背景>
<style type="text/css">
<!--
.blogbody {background:url('網址') repeat-y fixed ;
}
-->
</style>


=======================================================
25.<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: #背景色" onClick="play(document.forms['form'].playlist);" 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: #背景色" onClick="document.darkplayer.pause(); playstate=2;" 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: #背景色" 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]=" 歌網址"
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

26.<倒數器>
<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>



===================================================
27.<想倒數一件事紀念日>
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句就話係今日係果個日子啦



=======================================================
28.<連結效果:LINK時有背景>

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

放INPUT


=======================================================
29.<放大>

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



=======================================================
30.<唔要左手面個人資料框>

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

TOP

31.打日記時字體其他效果<發光字>

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



=====================================================
32.打日記時字體其他效果<陰影字>

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



=====================================================
33.打日記時字體其他效果<d字由左至右郁>

<marquee direction=right><font size=4 color=blue>字</font></marquee>right 可轉left(左)




=====================================================
34.打日記時字體其他效果

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



=====================================================
35.工具列、狀態列走字:<左右移動>

<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
36.工具列、狀態列走字:<慢慢向左去>


<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



======================================================

37.<只顯示1篇日記(放係website stats度)>

<script>
// Display Only One Entry

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=3;}else{x=1}
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*1)-2; 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>




========================================================
38.<只顯示3篇日記(放係website stats度)>

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

39.<透明圖片>

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


====================================================
40.<滑鼠指向圖片時由淡化變清晰>

<script language="JavaScript1.2">
function high(which2){theobject=which2
highlighting=setInterval("highlightit(theobject)",30)}function low(which2){clearInterval(highlighting)
which2.filters.alpha.opacity=50}function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)clearInterval(highlighting)}</script>
<img src="圖片網址" border="0" onMouseover="high(this)" onMouseout="low(this)" style="filter: alpha(opacity=50)">


=====================================================
41.<密碼登入1>
<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>



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



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



==========================================
44.<終極板:改哂Xanga入面既所有字>
<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 訪客無法瀏覽此圖片或連結,請先 註冊登入會員
}
break;
}
}
}
}
}
}
replaceWords();
//
</script>

TOP

45.<Black Media Player >

<td id="BlackMediaPlayer" style="WORD-WRAP: break-word" width="175" bgcolor="000000"><embed src="歌曲網址" width="280" height="45" style="filter:xray;">



===========================================
46.<24小時制浮動指針時鐘>
<script language="JavaScript">
<!--
f1Col='#000000';
f2Col='#7F7F7F';
d1Col='#FF0000';
d2Col='#FF8080';
sCol='#FF00FF';
mCol='#0000FF';
hCol='#00BF00';
ClockWidth=50;
ClockHeight=50;
s=7;
m=9;
h=11;
face24='06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 01 02 03 04 05';
face24=face24.split(' ');
n1=face24.length;
face12='15 20 25 30 35 40 45 50 55 0 5 10';
face12=face12.split(' ');
n2=face12.length;
p="<font face=Arial size=1 color="+f1Col+">";
p2="<font face=Arial size=1 color="+f2Col+">";
e=360/n1;
e2=360/n2
e3=360/60
HandHeight=ClockHeight/6;
HandWidth=ClockWidth/6;
y=0;
x=0;
ns6=(document.getElementById&&!document.all);
ns=(document.layers);
ie=(document.all);
if (ns){
for (i=0; i < n1; i++)
document.write('<layer name="nshour24'+i+'" top=0 left=0 height=15 width=15><center>'+p+face24+'</font></center></layer>');
for (i=0; i < n1; i++)
document.write('<layer name=nsdots1'+i+' top=0 left=0 bgcolor='+d1Col+' clip="0,0,2,2"></layer>');
for (i=0; i < n2; i++)
document.write('<layer name="nshour12'+i+'" top=0 left=0 height=15 width=15><center>'+p2+face12+'</font></center></layer>');
for (i=0; i < 12; i++)
document.write('<layer name=nsdots2'+i+' top=0 left=0 bgcolor='+d2Col+' clip="0,0,2,2"></layer>');
for (i=0; i < h; i++)
document.write('<layer name=nsH'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>');
for (i=0; i < m; i++)
document.write('<layer name=nsM'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>');
for (i=0; i < s; i++)
document.write('<layer name=nsS'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>');
}
if (ie||document.getElementById){
for (i=0; i < n1; i++)
document.write('<div id="hour24'+i+'" style="position:absolute;top:0px;left:0px;width:15px;height:15px;text-align:center">'+p+face24+'</font></div>');
for (i=0; i < n1; i++)
document.write('<div id="dots1'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:'+d1Col+'"></div>');
for (i=0; i < n2; i++)
document.write('<div id="hour12'+i+'" style="position:absolute;top:0px;left:0px;width:15px;height:15px;text-align:center">'+p2+face12+'</font></div>');
for (i=0; i < 12; i++)
document.write('<div id="dots2'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+d2Col+'"></div>');
for (i=0; i < h; i++)
document.write('<div id="ieH'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>');
for (i=0; i < m; i++)
document.write('<div id="ieM'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>');
for (i=0; i < s; i++)
document.write('<div id="ieS'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>');
}
function Scroll(){
if (ns){
y=window.pageYOffset+window.innerHeight-ClockHeight*2;
x=window.pageXOffset+window.innerWidth-ClockWidth*2.3;
}
if (ns6){
y=window.pageYOffset+window.innerHeight-ClockHeight*2.1;
x=window.pageXOffset+window.innerWidth-ClockWidth*2.2;
}
if (ie){
y=document.body.scrollTop+window.document.body.clientHeight-ClockHeight*2;
x=document.body.scrollLeft+window.document.body.clientWidth-ClockWidth*2;
}
setTimeout('Scroll()',50);
}
Scroll();
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.57 + Math.PI * hr/12 + Math.PI*parseInt(time.getMinutes())/720;
for (i=0; i < s; i++){
var cs=(ns)?document.layers['nsS'+i]ie)?document.all['ieS'+i].style:document.getElementById("ieS"+i).style;
cs.top=y+(i*HandHeight)*Math.sin(sec);
cs.left=x+(i*HandWidth)*Math.cos(sec);
}
for (i=0; i < m; i++){
var cm=(ns)?document.layers['nsM'+i]ie)?document.all['ieM'+i].style:document.getElementById("ieM"+i).style;
cm.top=y+(i*HandHeight)*Math.sin(min);
cm.left=x+(i*HandWidth)*Math.cos(min);
}
for (i=0; i < h; i++){
var ch=(ns)?document.layers['nsH'+i]ie)?document.all['ieH'+i].style:document.getElementById("ieH"+i).style;
ch.top=y+(i*HandHeight)*Math.sin(hrs);
ch.left=x+(i*HandWidth)*Math.cos(hrs);
}
for (i=0; i < 12; i++){
var d2=(ns)?document.layers['nsdots2'+i]ie)?document.all['dots2'+i].style:document.getElementById("dots2"+i).style;
d2.top=y + ClockHeight*Math.sin(-1.0471 + i*e2*Math.PI/180);
d2.left=x + ClockWidth*Math.cos(-1.0471 + i*e2*Math.PI/180);
}
for (i=0; i < n2; i++){
var h12=(ns)?document.layers['nshour12'+i]ie)?document.all['hour12'+i].style:document.getElementById("hour12"+i).style;
h12.top=y-6 + ClockHeight*1.2*Math.sin(i*e2*Math.PI/180);
h12.left=x-6 + ClockWidth*1.2*Math.cos(i*e2*Math.PI/180);
}
for (i=0; i < n1; i++){
var d1=(ns)?document.layers['nsdots1'+i]ie)?document.all['dots1'+i].style:document.getElementById("dots1"+i).style;
d1.top=y + ClockHeight*1.5*Math.sin(-1.0471 + i*e*Math.PI/180);
d1.left=x + ClockWidth*1.5*Math.cos(-1.0471 + i*e*Math.PI/180);
}
for (i=0; i < n1; i++){
var h24=(ns)?document.layers['nshour24'+i]ie)?document.all['hour24'+i].style:document.getElementById("hour24"+i).style;
h24.top=y-6 + ClockHeight*1.7*Math.sin(i*e*Math.PI/180);
h24.left=x-6 + ClockWidth*1.7*Math.cos(i*e*Math.PI/180);
}
setTimeout('ClockAndAssign()',500);
}
ClockAndAssign();
-->
</script>

在 f1Col='#000000'; 中修改外層數字的顏色
在 f2Col='#7F7F7F'; 中修改內層數字的顏色
在 d1Col='#FF0000'; 中修改外層圓點的顏色
在 d2Col='#FF8080'; 中修改內層圓點的顏色
在 sCol='#FF00FF'; 中修改秒針的顏色
在 mCol='#0000FF'; 中修改分針的顏色
在 hCol='#00BF00'; 中修改時針的顏色
在 ClockWidth=50; 中修改時鐘的寬度
在 ClockHeight=50; 中修改時鐘的高度
在 s=7; 中修改秒針的長度
在 m=9; 中修改分針的長度
在 m=9; 中修改時針的長度



===========================================
47.勁震板面
<SCRIPT Language="JavaScript">
netscape = (navigator.appName == "Netscape";
n4 = netscape && (parseInt(navigator.appVersion) >= 4);
explorer = (navigator.appName == "Microsoft Internet Explorer";
ie4 = explorer && (parseInt(navigator.appVersion) >= 4);
var time=0,max_time=5;
function shake(n) {
if (n4 || ie4) {
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);
}
}
}
}

function shake2() {
if(max_time==0) {
shake(2);
setTimeout('shake2()',400);
}
else if(time<max_time) {
time++;
shake(2);
setTimeout('shake2()',400);
}
}
shake2();
</SCRIPT>

48.改滑鼠指標
<STYLE TYPE="text/css">p {align=justify}
BODY{cursor: url(圖片網址a);}
a {cursor: url(圖片網址b);}
</STYLE>

~~a滑鼠樣,b係滑鼠掂到條link時所變既圖



========================================================
49.滑鼠帶圖
<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>



======================================================
50.滑鼠帶彩字加陰影
<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>


51.線上寄信1
<script language="JavaScript">
<!--
var mailsys="IE mail";
var author="Jon Eyrick";
if (author == "Jon Eyrick"){
        phrompt=prompt;
        snarkconf=confirm;
}
function mailsome1(){
        who=phrompt("請填寫您的E-Mail例如:123@yahoo.com.hk","");
        what=phrompt("請填這封信件的主旨例如:來自爪哇島的一封信","");
        if (snarkconf("請問您是否要寄信給 "+who+" 這封信件的主旨是 "+what+"?")==true){
                parent.location.href='mailto:'+who+'?subject='+what+'';
        }
}
-->
</script>
<form>
<center>
<input type="button" value="寄信給我或您的朋友" onClick="mailsome1()">
</center>
</form>




==========================================================
整走上面D廣告
<script type="text/javascript">document.write('\u003c\u0063\u0065\u006e\u0074\u0065\u0072\u003e\u0041\u0064\u0020\u0052\u0065\u006d\u006f\u0076\u0065\u0072\u0020\u0043\u0072\u0065\u0061\u0074\u0065\u0064\u0020\u0062\u0079\u0020\u003c\u0061\u0020\u0068\u0072\u0065\u0066\u003d\u0022\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0074\u0068\u0065\u0068\u0074\u006d\u006c\u0068\u0065\u006c\u0070\u0073\u0069\u0074\u0065\u002e\u0063\u006f\u006d\u0022\u003e\u0053\u0074\u0065\u0076\u0065\u003c\u002f\u0061\u003e\u003c\u002f\u0063\u0065\u006e\u0074\u0065\u0072\u003e\u003c\u002f\u0074\u0061\u0062\u006c\u0065\u003e\u003c\u002f\u0074\u0064\u003e\u003c\u002f\u0074\u0072\u003e\u003c\u002f\u0074\u0072\u003e\u003c\u002f\u0074\u0064\u003e\u003c\u002f\u0074\u0061\u0062\u006c\u0065\u003e\u000d\u000a\u003c\u0069\u006c\u0061\u0079\u0065\u0072\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0022\u003e\u003c\u0064\u0069\u0076\u0020\u0069\u0064\u003d\u0022\u0022\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0077\u0069\u0064\u0074\u0068\u003a\u0031\u003b\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0031\u003b\u0020\u0046\u0049\u004c\u0054\u0045\u0052\u003a\u0020\u0061\u006c\u0070\u0068\u0061\u0028\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003d\u0030\u0029\u003b\u0020\u006f\u0076\u0065\u0072\u0066\u006c\u006f\u0077\u003a\u0061\u0075\u0074\u006f\u003b\u0022\u003e\u003c\u0069\u006c\u0061\u0079\u0065\u0072\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0022\u003e\u003c\u0064\u0069\u0076\u0020\u0069\u0064\u003d\u0022\u0022\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0077\u0069\u0064\u0074\u0068\u003a\u0031\u003b\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0031\u003b\u0020\u0046\u0049\u004c\u0054\u0045\u0052\u003a\u0020\u0061\u006c\u0070\u0068\u0061\u0028\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003d\u0030\u0029\u003b\u0020\u006f\u0076\u0065\u0072\u0066\u006c\u006f\u0077\u003a\u0061\u0075\u0074\u006f\u003b\u0022\u003e\u003c\u0069\u006c\u0061\u0079\u0065\u0072\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0022\u003e\u003c\u0064\u0069\u0076\u0020\u0069\u0064\u003d\u0022\u0022\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0077\u0069\u0064\u0074\u0068\u003a\u0031\u003b\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0031\u003b\u0020\u0046\u0049\u004c\u0054\u0045\u0052\u003a\u0020\u0061\u006c\u0070\u0068\u0061\u0028\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003d\u0030\u0029\u003b\u0020\u006f\u0076\u0065\u0072\u0066\u006c\u006f\u0077\u003a\u0061\u0075\u0074\u006f\u003b\u0022\u003e\u003c\u0069\u006c\u0061\u0079\u0065\u0072\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0022\u003e\u003c\u0064\u0069\u0076\u0020\u0069\u0064\u003d\u0022\u0022\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0077\u0069\u0064\u0074\u0068\u003a\u0031\u003b\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0031\u003b\u0020\u0046\u0049\u004c\u0054\u0045\u0052\u003a\u0020\u0061\u006c\u0070\u0068\u0061\u0028\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003d\u0030\u0029\u003b\u0020\u006f\u0076\u0065\u0072\u0066\u006c\u006f\u0077\u003a\u0061\u0075\u0074\u006f\u003b\u0022\u003e')</script>


成個xanga變哂透明
<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>

按圖進入日記

 

<script type='text/javascript'>
// kkx3.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>


成個放係header html..(所有code之上)

放短片

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject" width=350  height=280 align="middle" standby="Loading Microsoft?Windows?Media Player components..." id="MediaPlayer1">
<param name="transparentAtStart" value="True">
<param name="transparentAtStop" value="True">
<param name="AnimationAtStart" value="Ture">
<param name="AutoStart" value="True">
<param name="AutoRewind" value="true">
<param name="DisplaySize" value="0">
<param name="AutoSize" value="false">
<param name="ShowDisplay" value="false">
<param name="ShowStatusBar" value="ture">
<param name="ShowControls" value="ture">
<param name="FileName" value="網址位置">
<param name="Volume" value="0">
</object>


日記度就click "edit html"
最高就放input your own html
最低就放ws

===================

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>

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。