您必須先註冊才能使用本網的全部功能
自訂搜尋
熱門搜索
遊戲 軟件 音樂 短片 自貼 手機 Cosplay
電腦 Winning Eleven 勁舞團 外掛
發新話題
打印

[轉帖]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 MicrosoftWindows 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"><inputstyle="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF 3pxdouble; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR:#FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ffffff" type=button value=Playname=darkplay>

<input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR:#FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ffffff"  type=button value=Pause name=darkpause>  

<input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR:#FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ffffff"  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"   style="filter: alpha(opacity=50)">



6.可以將profile整寬
<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>
本帖最近評分記錄
  • kok476 積分 +10 獎勵原因:你發表的文章內容非常豐富! 2007-1-1 12:16 PM

TOP

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

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



19.右鍵變最愛(website)
<script Language="JavaScript">
function click() {
if (event.button==2) {
window.external.addFavorite('你果xanga網址','名')
}
}
document.onmousedown=click
</SCRIPT>



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

TOP

21.變色 ( 滑鼠指住日記時會光 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>



22.用 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>



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

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



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



26.想倒數一件事紀念日
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>

TOP

27.連結效果:LINK時有背景
<style type="text/css">a:hover {background:url(圖網址); text-decoration: none;}</style>

放INPUT



28.放大
<style>
a:hover
{font size: 10pt;} </style>

改數字放係Input your own Header HTML



29.唔要左手面個人資料框
<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>



30.打日記時字體其他效果(發光字)
<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>



31.打日記時字體其他效果(陰影字)
<span style="height:1;filter:shadow(color= white);"><font color=skyblue size=5>字</font></span>
size=5 等如字型大小
color= 位置改顏色



32.打日記時字體其他效果(d字由左至右郁)
<marquee direction=right><font size=4 color=blue>字</font></marquee>right 可轉left(左)

TOP

33.打日記時字體其他效果
變粗::<strong> 字 </strong>   
轉色::<font color=色碼> 字 </font>  
變大::<font size=大細1-7> 字 </font>



34.工具列、狀態列走字:左右移動
<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



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

TOP

發新話題