2000FUN論壇

 

 

搜索
2000FUN論壇 綜合論壇 寫我生活(網誌分享) Xanga語法教學
返回列表 發新帖 回覆
查看: 444623|回覆: 52
go

Xanga語法教學   [複製鏈接]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

1#
發表於 05-11-23 02:12 AM |只看該作者 |倒序瀏覽 |打印
未教[[語法]]前,先教Look and Feel



Part 1

Look and Feel最頭頂個框 - Page Width & Aliignment ;;;
係較整個Xanga既闊度同埋個Xanga係整個靠左或整個靠中

Part 2

Header分為三款
第一 - Hide Header ;;;
佢會隱藏左你整個Header,一入去就係Show日記
第二 - Create a Custom Header ;;;
即是Xanga最傳統的款式,有一個框俾你打你Xanga既標題及名稱
第三 - Input your own Header HTML ;;;
呢個係自製Header,可以擺放以下所教既語法,多數簡稱佢為Header

*******************************************************



Part 3

Background - Color ;;;
呢個Color就係你Xanga既底色,禁edit可以選擇顏色
Background - Pic ;;;
第一 - 俾你擺你背景圖條link
第二 - 選擇個背景圖放係邊度,如左上,左下中間等 ...
第三 - 選擇如何重複Show個背景,如直行重複,橫行重複或重複張貼於整個背景

*******************************************************



Part 4

Text & Links - Text ;;;
係俾你簡Xanga日記字型,大小及顏色
Text & Links - Links ;;;
係簡日記Link既顏色
第一 - Normal係條Link未禁去時
第二 - Active係剛禁時
第三 - Visited係你已經禁過入條Link
第四 - Hover係你個滑鼠掂到條Link,但又未禁去時

*******************************************************



Part 5

Border係左手邊個人資料框,FD List框,Blogrins框既款式,粗幼等既選擇

*******************************************************



Part 6

Music姐係Xanga個背景音樂
如果唔中意用佢本身果個,你可以選擇用語法,自己整
同埋歌Link可以去另一精華Post度搵Link或上Yahoo.JP自己Up

*******************************************************



Part 7

Search Bar姐係右手邊係日記之上果條Bar
個Search Bar你可以簡Show or唔Show
咁Search Bar and Trim - Border及Interior都係條Bar既顏色
而Search Bar and Trim - Trim係Xanga分隔線

*******************************************************

而Custom Module過左試用期就冇得用,所以唔教喇

*******************************************************



Part 8

Website Stats係擺語法既地方,好多語法都放係呢度或Header



[ 本帖最後由 卍天命卍 於 2009-6-5 07:16 PM 編輯 ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

2#
發表於 05-11-30 05:43 PM |只看該作者

用Crtl+F搵你想搵ge Code
**如果冇講明擺邊就姐係擺Website Stats



01. 登入篇 ... #2
02. 密碼篇 ... #2
03. 防止偷圖篇 ... #3
04. 移除篇 ... #3
05. 隱藏篇... #3
06. 板面篇... #3
07. 背景篇 ... #4
08. 日記框篇 ... #4
09. 日期篇 ... #4
10. 卷軸篇 ... #5
11. 滑鼠篇 ... #5
12. 字型篇 ... #
13. 貼圖篇 ... #
14. 改字篇 ... #
15. 超連結篇 ... #
16. 透明篇 ... #
17. Music Player篇 ... #
18. 短片播放器篇 ... #
19. 其他篇 ... #
【 XANGA語法一覽表】
第1頁
CSS - 基本語法     #13

基本語法     #14

走馬燈     #15

文字特效      #16

更改個人資料的ID     #17

內框語法     #18

加自設框     #19


轉頁不斷的音樂播放器     #20

背景音樂轉頁不中斷     #21

滑鼠右鍵無效語法     #22

Highlight無效語法     #23

指圖片連結 - 馬賽克 (只適用於IE)     #24

更改文字語法 (1)     #25

更改文字語法 (2)     #26

刪除Posting Calenda     #27

隱藏個人資料     #28

comment表情選擇     #29

COMMENT改背景顏色    #30

Comment 畫版     #31
====================================================
第2頁
讓人留下秘密comment     #32

個人資料轉右     #33

設定每頁顯示多少篇日記     #34

將所有日記private     #35

日記半透明,滑鼠指變清晰     #36

個人資料半透明,滑鼠指變清     #37

倒數語法     #38

改變日期的顯示方式     #39

將個人資料的內容隱藏,按一下顯示內容     #40

移除Subscriptions/Blogrings/Posting Calendar/Top Tags     #41

YouTube 自動播放     #42

素材 總匯     #43

兩款人流紀錄器     #44

兩款匿名瀏覽Xanga     #45

將亂碼還原的方法     #46

ColorMachine 漸變色文字軟件     #47

部落格玩意 總匯     #48

Mini Weather天氣插件     #49

多個款式的音樂播放器     #50



*******************************************************

01. 登入篇 ;;;

強逼登入先可以睇到 ;;;
Step 1
  1. <!-- Part I of Block Users Script submitted by xanga.com/sherrys_designs -->
  2. <script LANGUAGE="JavaScript">
  3. function redirect () {
  4. location.href = 'http://www.xanga.com/signin.aspx';
  5. }
  6. </SCRIPT>
複製代碼
**放Header
Step 2
  1. <!-- Part II of Block Users Script submitted by xanga.com/sherrys_designs -->
  2. <script language="javascript">
  3. function getXName() {
  4. for (var i = 0; i < document.links.length; i++) {
  5. if (document.links[i].href.substring(0,38)=="http://www.xanga.com/private/home.aspx") {
  6. var link = document.links[i];
  7. var text = document.all ? link.innerText : link.text ? link.text : '';
  8. return text;
  9. break;
  10. }}
  11. return null;
  12. }

  13. xName = getXName();

  14. if (xName == 'USERNAME' || xName == 'USERNAME' || xName == null) {
  15. alert("你想整既字");
  16. redirect();
  17. }

  18. </script>
複製代碼
**放Website Stats,Step 1同Step 2都要做齊
    呢個code可以防止某d人入黎
    例如冇signin既人同埋你想block既人,係USERNAME度打你想block個人就ok
    佢會彈左句Sorry, you are either blocked from this site or not logged in.出黎


*******************************************************

登入時彈出的Welcome Message (視窗板) ;;;
  1. <script language="JavaScript">
  2. <!--
  3. alert(" 字 ");
  4. //--></script>
複製代碼
*******************************************************

登入時彈出的Welcome Message (公仔板) ;;;
  1. <!--webbot bot="HTMLMarkup" startspan --><p><!--webbot bot="HTMLMarkup" startspan --><Object ID=tsaiannie53441  ClassID=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F></Object>
  2. <Script>
  3. // 繁體中文化【小依依-JavaScript教戰手冊】
  4. // http://www.tacocity.com.tw/tsai5344/
  5. var MerlinID;
  6. var MerlinACS;
  7. tsaiannie53441.Connected = true;
  8. MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
  9. Merlin = tsaiannie53441.Characters.Character(MerlinID);
  10. Merlin.Show();

  11. // ★請修改你想要顯示的訊息★
  12. Merlin.Play("Surprised");
  13. Merlin.Play("GestureLeft");
  14. Merlin.Think("你想打既字");  
  15. Merlin.Play("GestureLeft");
  16. Merlin.Speak("你想打既字");
  17. Merlin.Play("GestureLeft");
  18. Merlin.Think("你想打既字");
  19. Merlin.Play("Pleased");
  20. Merlin.Think("你想打既字");
  21. Merlin.Play("GestureDown");   
  22. Merlin.Speak("你想打既字");
  23. Merlin.Hide();
  24. function LoadLocalAgent(CharID, CharACS) {
  25. LoadReq = tsaiannie53441.Characters.Load(CharID, CharACS);
  26. return(true);
  27. }
  28. </Script><!--webbot bot="HTMLMarkup" endspan i-checksum="40719" --></p><!--webbot bot="HTMLMarkup" endspan i-checksum="1386" -->
複製代碼
**個公仔係可以轉pose既
    想轉既話就改Merlin.Play成行既英文
    以下有d pose款式 ;;;

出現 Merlin.Show(); 作揖 Merlin.Play("Uncertain");
歡呼 Merlin.Play("Surprised"); 獎杯 Merlin.Play("Congratulate");
合掌 Merlin.Play("Pleased"); 拍手 Merlin.Play("Congratulate_2");
瞇眼 Merlin.Play("Blink"); 打哈欠 Merlin.Play("Idle3_1");
彎腰 Merlin.Play("RestPose"); 打瞌睡 Merlin.Play("Idle3_2");
點頭 Merlin.Play("Sad"); 頭痛 Merlin.Play("StopListening");
無奈 Merlin.Play("Decline"); 想事情 Merlin.Play("Think");
偏頭 Merlin.Play("Confused"); 聽 Merlin.Play("DontRecognize");
高舉雙手 Merlin.Play("GestureUp"); 伸出雙手 Merlin.Play("Explain");
小鞠躬 Merlin.Play("GestureDown"); 敲門 Merlin.Play("GetAttention");
伸出左手 Merlin.Play("GestureLeft"); 敲 Merlin.Play("GetAttentionReturn");
伸出右手 Merlin.Play("GestureRigh"); 小點頭 Merlin.Play("LookDown");
揮手 Merlin.Play("Wave"); 攪拌 Merlin.Play("Process");
魔法棒1 Merlin.Play("DoMagic1"); 水晶球 Merlin.Play("Search");
魔法棒2 Merlin.Play("DoMagic2"); 寫字 Merlin.Play("Write");
大點頭 Merlin.Play("Acknowledge"); 收書 Merlin.Play("WriteReturn");
大鞠躬 Merlin.Play("Greet"); 吹喇叭 Merlin.Play("Announce");
靈機一動 Merlin.Play("Suggest"); 歡呼 Merlin.Play("Surprised");
移動 Merlin.MoveTo(400,300); 離開 Merlin.Hide();


*******************************************************

按圖進入 ;;;
  1. <!-- begin code provided by createblog.com -->

  2. <script type='text/javascript'>
  3. // intro splash page by micron
  4. // for more xanga scripts and help go to createblog.com

  5. // change this url to an image of your choice
  6. var image ='圖link';

  7. function enterSite() {
  8. document.getElementById('splash').style.display = 'none';
  9. var content = document.getElementsByTagName("center");
  10. for (var i=0; i<content.length;i++) {
  11. content[i].style.display = 'block';
  12. }
  13. return false;
  14. }

  15. if (document.title.slice(-10) == 'Xanga Site') {
  16. document.write('</span></center><style type="text/css"> center {display:none;} .image {border:1px 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>');
  17. }
  18. </script>

  19. <!-- end code provided by createblog.com -->
複製代碼
**呢個code一定要擺係Header,唔係既話,後果自負

*******************************************************

按圖進入 (隨機板) ;;;
  1. <!-- begin code provided by createblog.com -->

  2. <script type='text/javascript'>
  3. //Random Intro Splash Page by Mystical for Createblog.com
  4. //Modified Intro Splash script by Micron
  5. function enterSite() {
  6. document.getElementById('splash').style.display = 'none';
  7. var content = document.getElementsByTagName("center");
  8. for (var i=0; i<content.length;i++) {
  9. content[i].style.display = 'block';
  10. }
  11. return false;
  12. }

  13. if (document.title.slice(-10) == 'Xanga Site') {
  14. var myimages=new Array()
  15. //specify random images below. You can have as many as you wish
  16. myimages[1]='http://www.xangaskins.com/modules/02/images/01.jpg';
  17. myimages[2]='http://www.xangaskins.com/modules/02/images/02.jpg';
  18. myimages[3]='http://www.xangaskins.com/modules/02/images/03.jpg';
  19. myimages[4]='http://www.xangaskins.com/modules/02/images/04.jpg';
  20. myimages[5]='http://www.xangaskins.com/modules/02/images/05.jpg';

  21. var ry=Math.floor(Math.random()*myimages.length)
  22. if (ry==0)
  23. ry=1
  24. document.write('</span></center><style type="text/css"> center {display:none;} .image {border:1px 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="'+myimages[ry]+'" border="0" class="image"></a></td></tr></table><center><span>');
  25. }
  26. </script>

  27. <!-- end code provided by createblog.com -->
複製代碼
**呢個code都一定要擺Header,唔係既話,成個xanga會變白頁

*******************************************************

震動板面 ;;;
  1. <script>
  2. function shake(n) {
  3. if (self.moveBy){
  4. for (i = 10; i > 0; i--) {
  5. for (j = n; j > 0; j--) {
  6. self.moveBy(0,i);
  7. self.moveBy(i,0);
  8. self.moveBy(0,-i);
  9. self.moveBy(-i,0);
  10. }} } }shake(1);</script>
複製代碼
*******************************************************

離開時的Bye Bye Message ;;;
  1. <script language="JavaScript">
  2. function UserExit(){
  3. alert("字");
  4. }</script>
  5. <body  onUnload="UserExit()">
複製代碼
*******************************************************

02. 密碼篇 ;;;

輸入密碼進入(一) ;;;
  1. <SCRIPT LANGUAGE="JavaScript">
  2. function password() {
  3. var testV = 1;
  4. var pass1 = prompt('請輸入密碼(密碼是welcome):','');
  5. while (testV < 3) {
  6. if (!pass1)
  7. history.go(-1);
  8. if (pass1 == "welcome") {
  9. alert('密碼正確!');
  10. break;
  11. }
  12. testV+=1;
  13. var pass1 =
  14. prompt('密碼錯誤!請重新輸入:');
  15. }
  16. if (pass1!="password" & testV ==3)
  17. history.go(-1);
  18. return " ";
  19. }
  20. document.write(password());
  21. </SCRIPT>
複製代碼
**打錯密碼會有提示

*******************************************************

輸入密碼進入(二) ;;;
  1. <script language="JavaScript">
  2. <!--
  3. var keyword = "welcome"
  4. function checkKey(){
  5. var key = prompt(" 提示問題 "," 打密碼地方GE字 ")
  6. if(keyword != key)
  7. history.go(0)
  8. }
  9. checkKey()
  10. //-->
  11. </script>
複製代碼
**一定要知密碼先入到,錯左唔會有提示亦唔會去左第二個網頁

*******************************************************

輸入密碼進入(三) ;;;
  1. <script LANGUAGE="JavaScript">
  2. <!-- Begin
  3. var monkey = prompt("請輸入所需要密碼"," 提示密碼 welcome ")
  4. if (monkey == 'welcome'){
  5. }
  6. else {
  7. self.location = 'http://www.yahoo.com'
  8. }
  9. // End -->
  10. </script>
複製代碼
**如果打錯密碼就會去左Yahoo

*******************************************************


[ 本帖最後由 卍天命卍 於 2009-6-8 12:46 PM 編輯 ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

3#
發表於 05-11-30 05:44 PM |只看該作者
03. 防止偷圖篇 ;;;

鎖Right Click+彈1個警告 ;;;
  1. <script language="JavaScript">
  2. if (navigator.appName.indexOf("Internet Explorer") != -1)
  3. document.onmousedown = noSourceExplorer;
  4. function noSourceExplorer(){if (event.button == 2 |
  5. event.button == 10){alert(" 字 ")
  6. ;}}</script>
複製代碼


*******************************************************

鎖Right Click+彈警告+彈多個Window ;;;
  1. <script language=Javascript>
  2. function click(){
  3. if(event.button==2){earthquake()
  4. alert("警告的字")
  5. window.open("網址")
  6. ;}
  7. }document.onmousedown=click// --]
  8.   function earthquake(){
  9. window.moveTo(1000,5000)
  10. }
  11. </script>
複製代碼


*******************************************************

鎖Right Click+防Hight Light ;;;
  1. <body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
複製代碼


*******************************************************

鎖Right Click,但唔防Hight Light ;;;
  1. <SCRIPT Language="JavaScript">
  2. var message="Function Disabled!";
  3. ///////////////////////////////////
  4. function clickIE() {if (document.all) {alert(message);return false;}}
  5. function clickNS(e) {if
  6. (document.layers||(document.getElementById&&!document.all)) {
  7. if (e.which==2||e.which==3) {alert(message);return false;}}}
  8. if (document.layers)
  9. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  10. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

  11. document.oncontextmenu=new Function("return false")
  12. </SCRIPT>
複製代碼


*******************************************************

隱藏圖左上面的Toolbar ;;;

  1. <script title="Disable Image Toolbar">
  2. var toolbar_a = '<M';
  3. var toolbar_b = 'ETA HTTP-EQUIV="imagetoolbar" CONTENT="no">';
  4. document.write(toolbar_a+toolbar_b);
  5. </script>
複製代碼



04. 移除篇 ;;;

移除廣告 ;;;
  1. <noembed>
  2. <xml>
複製代碼


移除廣告後的空位 ;;;
  1. <div style="left:10; top:10; position=absolute;">
複製代碼

**放Header

*******************************************************

移除個人資料框 ;;;
Step 1
  1. <style type="text/css">
  2. .#rblEprops{display:none;}
  3. #pnlEnabled table, #htmleditor, #lblTimeZone, #pnlEprops, #rblEprops
  4. /* width of the comment page */
  5. {width:340px;}
  6. .leftmoduletitlebar, .leftmoduleborder, .leftmoduleinterior, table.left, table.left TH, table.left TD, table.navigation, table.footer
  7. {display: none;} </style>
複製代碼

Step 2
  1. <a href="http://edit.xanga.com/signin.aspx?ReturnUrl=%2fclaf.aspx">look & feel</a>
複製代碼

**消除個人資料框後(即Step 1)要加返條link (即Step 2)先可以入look and feel改野

*******************************************************

移除Subscriptions/MyBlogrings/Posting Calendar ;;;

  1. <script type="text/javascript">
  2. <!--
  3. //removes Subscriptions, My Blogrings or Posting Calender Modules
  4. //by Edw @ forum.xangascript.info
  5. //supports firefox

  6. // 1 = yes, 0 = no
  7. RemoveSubscriptionsModule = 0;
  8. RemoveMyBlogringsModule = 0;
  9. RemovePostingCalender = 0;

  10. // DO NOT EDIT BEYOND THIS LINE

  11. //man-made removeNode() for non-IE browser
  12. if(window.Node){
  13. Node.prototype.removeNode=function(removeChildren){
  14. if(removeChildren)
  15. return this.parentNode.removeChild(this);
  16. else{
  17. var range=document.createRange();
  18. range.selectNodeContents(this);
  19. return this.parentNode.replaceChild(range.extractContents(),this);
  20. }
  21. }
  22. }

  23. function checkIfModulesExists() {
  24. xUrl = document.location.href.toLowerCase();
  25. var re = /xanga.com\b\/[a-zA-Z]{1,}[\da-zA-Z_]{1,}\/[0123456789]+\/[\da-z-]{0,}.html/;
  26. var nothome = /xanga.com\b\/profile.aspx|xanga.com\b\/guestbook.aspx|xanga.com\b\/contentlatest.asp|xanga.com\b\/private\//;
  27. if (!(xUrl.match(re) || xUrl.match(nothome))) {
  28. return true;
  29. } else {
  30. return false;
  31. }
  32. }

  33. function RemoveModules() {
  34. var subscription = document.getElementById("subTitle").parentNode.parentNode.parentNode.parentNode.parentNode;
  35. var calender= document.getElementById("aspnetForm");
  36. if (RemoveSubscriptionsModule == 1){
  37. subscription.nextSibling.removeNode(true);
  38. subscription.removeNode(true);
  39. }
  40. if (RemoveMyBlogringsModule == 1){
  41. var blogring= calender.previousSibling.previousSibling.previousSibling;
  42. blogring.nextSibling.removeNode(true);
  43. blogring.removeNode(true);
  44. }
  45. if (RemovePostingCalender == 1){
  46. calender.removeNode(true);
  47. }
  48. }

  49. if (checkIfModulesExists()) RemoveModules();
  50. //-->
  51. </script>
複製代碼

** // 1 = yes, 0 = no
    RemoveSubscriptionsModule = 0;
    RemoveMyBlogringsModule = 0;
    RemovePostingCalender = 0;
    想移除佢地既話,就將0改為1


*******************************************************

移除Xanga最底的超連結 ;;;
  1. <style type="text/css">
  2. table.footer { display:none; }
  3. </style>
複製代碼


*******************************************************

05. 隱藏篇 ;;;

隱藏左邊的Module ;;;


  1. <script type="text/javascript">
  2. //
  3. // ============================
  4. // "Minimize your modules"
  5. // version 2.0, July, 2005
  6. // ============================
  7. //
  8. // &copy;2005 EasterEgg

  9. // If you change the value of displayTopModule to 1, the top module will be displayed
  10. // by default. Set it's value to 0 if you don't want this.
  11. //

  12. displayTopModule = 1;

  13. allTables = document.getElementsByTagName('table');
  14. leftSideModules = new Array();
  15. for (i=0; i<allTables.length; ++i)
  16. {
  17. if (allTables[i].className == 'left')
  18. {
  19. allTables[i].id = 'leftsidemod' + leftSideModules.length;
  20. leftSideModules.push(allTables[i]);
  21. }

  22. }
  23. function toggleDisplayOrHide(anElement,idNr)
  24. {
  25. extraRow = document.getElementById(idNr).getElementsByTagName('TR')[2];
  26. if (anElement.style.display == 'none')
  27. {
  28. anElement.style.display = ''
  29. if (extraRow)
  30. document.getElementById(idNr).getElementsByTagName('TR')[2].style.display = '';
  31. }
  32. else
  33. {
  34. anElement.style.display = 'none';
  35. if (extraRow)
  36. document.getElementById(idNr).getElementsByTagName('TR')[2].style.display = 'none';
  37. }
  38. }
  39. headerLinkColor = '';
  40. topStyleSheet = document.getElementsByTagName('style')[0];
  41. if (document.URL.indexOf('weblogs'))
  42. topStyleSheet = document.getElementsByTagName('style')[1];
  43. if (topStyleSheet)
  44. {
  45. searchStr = 'table.left TH { color: ';
  46. searchStrPos = topStyleSheet.innerHTML.indexOf(searchStr);
  47. if (searchStrPos)
  48. {
  49. searchStrPos = searchStrPos + searchStr.length;
  50. headerLinkColor = topStyleSheet.innerHTML.substring(searchStrPos, searchStrPos + 7);
  51. }
  52. }
  53. for (n = 0; n<leftSideModules.length; ++n)
  54. {
  55. if (navigator.userAgent.indexOf('Opera') == -1)
  56. {
  57. temp1 = leftSideModules[n].getElementsByTagName('TH')[0].innerHTML;
  58. temp2 = '<a href=\"#\" onclick=\"javascript:toggleDisplayOrHide(document.getElementById(' +
  59. '\'' + leftSideModules[n].id + '\').getElementsByTagName(\'TR\')[1],\'' +
  60. leftSideModules[n].id + '\'); return false;\" style=\"text-decoration: none; color: ' +
  61. headerLinkColor + ';\">' + temp1 + '</a>';
  62. leftSideModules[n].getElementsByTagName('TH')[0].innerHTML = temp2;
  63. if ((n == 0) && (displayTopModule == 1))
  64. leftSideModules[n].getElementsByTagName('TR')[1].style.display = ''
  65. else
  66. leftSideModules[n].getElementsByTagName('TR')[1].style.display = 'none';
  67. if (leftSideModules[n].getElementsByTagName('TR')[2])
  68. leftSideModules[n].getElementsByTagName('TR')[2].style.display = 'none';
  69. }
  70. }
  71. </script>
複製代碼


*******************************************************

06. 板面篇 ;;;

自設網頁名 ;;;
  1. <script language=javascript>
  2. document.title=("你想要顯示既字")
  3. </script>
複製代碼


*******************************************************

板面左右掉轉 ;;;
  1. <body ONCONTEXTMENU="return false" dir="rtl"><DIV DIR="LTR">
複製代碼


*******************************************************

更改個人資料框闊度 ;;;
  1. <style type="text/css">
  2. table.left { border: 粗px dashed #色; width:你想要的闊度px}
  3. </style>
複製代碼

**dashed可改dotted(點)、double(雙線)、solid(單線)

*******************************************************

Profile下加多個Module ;;;
  1. <script>
  2. titleContent = '標題';
  3. moduleContent = '內容';
  4. sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode
  5. sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent)
  6. sub.insertAdjacentHTML('beforeBegin','<BR>');
  7. </script>
複製代碼


*******************************************************



[ 本帖最後由 aR敏╭● 於 2006-6-25 05:56 PM 編輯 ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

4#
發表於 05-11-30 05:45 PM |只看該作者

07. 背景篇 ;;;

隨機背景圖 ;;;
  1. <script language=javascript>
  2. <!--
  3. var pic=new Array(5)
  4. pic[0]="圖1網址"
  5. pic[1]="圖2網址"
  6. pic[2]="圖3網址"
  7. pic[3]="圖4網址"
  8. pic[4]="圖5網址"

  9. var newdate=new Date()
  10. var getpic=newdate.getSeconds()%pic.length
  11. document.write('<body background='+pic[getpic]+'>')
  12. //-->
  13. </script>
複製代碼

**如果唔夠"圖1,2,3,4 ... 網址"擺就可以如此類推加落去

*******************************************************

隨機背景圖+自訂位置 ;;;
  1. <script language=javascript>
  2. var pic=new Array(5)
  3. pic[0]="圖1網址"
  4. pic[1]="圖2網址"
  5. pic[2]="圖3網址"
  6. pic[3]="圖4網址"
  7. pic[4]="圖5網址"


  8. var newdate=new Date()
  9. var getpic=newdate.getSeconds()%pic.length
  10. document.write('<STYLE>')
  11. document.write('body{ background-image: url('+pic[getpic]+');')
  12. document.write(' background-repeat: no-repeat; ')
  13. document.write('background-attachment: fixed; ')
  14. document.write('background-position: 50% 50% }')
  15. document.write('</STYLE>')
  16. </script>
複製代碼

**語法中最底部background-position: 50% 50%的50% 50%是控制圖片顯示位置,可修改
    若設定為background-position: 0% 0%則是升到、最高、最左。如此類推


*******************************************************

日記內容背景 ;;;
  1. <style type="text/css">
  2. table.blogbody {
  3. family-font: verdana;
  4. border: 粗度px dotted #顏色;
  5. BACKGROUND-IMAGE: url(圖片網址);
  6. FILTER: alpha(opacity=透明度);
  7. }
  8. <style>
複製代碼


*******************************************************

個人資料背景 ;;;
  1. <STYLE type="text/css">
  2. <!--
  3. table.left th { background-image:url(' 圖址 ') }
  4. table.left td { background-image:url(' 圖址 ') }
  5. //-->
  6. </STYLE>
複製代碼

**th係Profile果個title背景,td係Profile果個框ge背景

*******************************************************

按超連結時的背景 ;;;
  1. <style type="text/css">a:hover {background:url(圖網址); text-decoration: none;}</style>
複製代碼


*******************************************************

背景淡化 ;;;

  1. <style>
  2. body{
  3. background-image : url(背景圖網址);filter:Alpha(Opacity=99,style=2);
  4. background-repeat : repeat;
  5. background-attachment : fixed;}
  6. </style>
複製代碼

**Opacity係透明度,Style可以簡1,2,3三個

*******************************************************

自動替換背景 ;;;
  1. <script language="JavaScript">
  2. <!--
  3. var backgroundimage=new Array("圖片網址1","圖片網址2","圖片網址3")
  4. var swapspeed=2
  5. var timer
  6. var imgpreload=new Array()
  7. if (document.all) {
  8. for (i=0;i<=backgroundimage.length-1;i++) {
  9. imgpreload=new Image()
  10. imgpreload.src=backgroundimage
  11. }
  12. }
  13. var i_backgroundimage=0
  14. swapspeed=swapspeed*1000
  15. function swapimages() {
  16. if (document.all) {
  17. window.status=i_backgroundimage
  18. document.body.background=backgroundimage[i_backgroundimage]
  19. i_backgroundimage++
  20. if (i_backgroundimage>=backgroundimage.length) {i_backgroundimage=0}
  21. timer=setTimeout("swapimages()",swapspeed)
  22. }
  23. }
  24. window.onload=swapimages
  25. -->
  26. </script>
複製代碼

**var swapspeed=2(亦即第4句)中修改變換的時間,數值愈大,更換背景既時間就愈慢

*******************************************************

08. 日記框篇 ;;;

日記外框 ;;;
  1. <style>
  2. body{
  3. border-right: 100px dotted;
  4. border-top: 100px dotted;
  5. border-left: 100px dotted;
  6. border-bottom: 100px dotted;
  7. border-color:#FF0000;
  8. }</style>
複製代碼


*******************************************************

變色外框 ;;;
  1. <SCRIPT LANGUAGE="JavaScript">
  2. colours=new Array('cccccc','ffffff','000000')
  3. function gs(){
  4. var clrPos=Math.floor(Math.random()*colours.length)
  5. with (window.document.body.style){
  6. borderWidth=10;
  7. borderStyle='solid';
  8. borderColor=colours[clrPos];}}
  9. if (document.all)window.document.body.onscroll=gs;
  10. </SCRIPT>
複製代碼


*******************************************************

日記內框 ;;;
  1. <DIV align="center" valign="middle" style="BORDER-RIGHT: #色碼 幾大px dotted; BORDER-TOP: #色碼 幾大px dotted; FILTER: alpha(opacity=透明度); OVERFLOW: auto; BORDER-LEFT: #色碼 幾大px dotted; WIDTH: 幾闊px; BORDER-BOTTOM: #色碼 幾大px dotted; HEIGHT: 幾高px">
複製代碼


*******************************************************

日記背景外框 ;;;
  1. </table><DIV align="center" valign="middle" style="filter: alpha(opacity=100); overflow: auto; width: 800px; height: 600px; background-image: url('圖片網址'); background-color: #FFFFFF; border: 2px dotted #000000">
複製代碼


*******************************************************

日記內容框 ;;;
  1. <style type="text/css">
  2. table.blogbody {
  3. /* this edits the other the place where the  blog is */;
  4. family-font: verdana;
  5. border: 粗度px double #色碼;
  6. width:闊px;
  7. background color=#色碼;
  8. FILTER: alpha(opacity=透明度);

  9. </style>
複製代碼


*******************************************************


09. 日期篇 ;;;

修改日期板面 ;;;

  1. <style type="text/css">
  2. div.blogheader, .caption {
  3. font-family:日期字型;
  4. text-transform:none;
  5. font-size:日期字大細px;
  6. line-height:高度px;
  7. font-weight:bolder;
  8. color:#字色;
  9. letter-spacing:相隔px;
  10. text-align: 放的位置CENTER、LEFT、RIGHT;
  11. background-image:url(' 背景圖 ');
  12. background-color: 背景色;
  13. height: 日期框高px;
  14. width: 日期框闊px;
  15. }
  16. </style>
複製代碼


*******************************************************

修改日期字 ;;;

  1. <script type="text/javascript">
  2. // ====================
  3. // listing of available constants (using date
  4. // "Tuesday, March 16, 2004" as an example):
  5. // dd = 16
  6. // ddd = Tue
  7. // dddd = Tuesday
  8. // mm = 03
  9. // mmm = Mar
  10. // mmmm = March
  11. // yy = 04
  12. // yyyy = 2004
  13. // ====================

  14. function formatEntryDate()
  15. {
  16. // adjust the dateFormatStr below as you see fit
  17. // ========================================
  18. dateFormatStr = '<table width="75%"><tr><td style="border-top: none; border-bottom: 2px dashed #999999; border-left: none; border-right: none; background-color: #ffccff; background-image: none; text-align: left; font-family: verdana; font-size: 15px; font-color: #000000; font-weight: bold;">* dd-mmm-yyyy  ddd = ]</td></tr></table>';
  19. // ========================================
  20. function getMonthNr(sMonth)
  21. {
  22. months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  23. for (var n = 0; n < months.length; ++n)
  24. {
  25. if (months[n] == sMonth)
  26. {
  27. if ( n + 1 < 10)
  28. return '0' + (n + 1).toString()
  29. else
  30. return (n + 1).toString();
  31. }
  32. }
  33. }
  34. allDivs = document.getElementsByTagName('div');
  35. for (var i = 0; i < allDivs.length; ++i)
  36. {
  37. if (allDivs[i].className == 'blogheader')
  38. {
  39. newDateFormat = dateFormatStr;
  40. entryDate = allDivs[i].innerHTML;
  41. // day
  42. dayLong = entryDate.substr(0, entryDate.indexOf(',')); // dddd
  43. dayShort = dayLong.substr(0, 3); // ddd
  44. tempStr = entryDate.substr(dayLong.length + 1);
  45. dayNr = tempStr.substr(tempStr.indexOf(',') - 2, 2); // dd
  46. newDateFormat = newDateFormat.replace('dddd', dayLong);
  47. newDateFormat = newDateFormat.replace('ddd', dayShort);
  48. newDateFormat = newDateFormat.replace('dd', dayNr);
  49. // month
  50. monthLong = tempStr.substr(1, tempStr.indexOf(',') - 3); // mmmm
  51. monthShort = monthLong.substr(0, 3); // mmm
  52. monthNr = getMonthNr(monthShort); // mm
  53. newDateFormat = newDateFormat.replace('mmmm', monthLong);
  54. newDateFormat = newDateFormat.replace('mmm', monthShort);
  55. newDateFormat = newDateFormat.replace('mm', monthNr);
  56. // year
  57. yearLong = tempStr.substr(tempStr.indexOf(',') + 2); // yyyy
  58. yearShort = yearLong.substr(2); // yy
  59. newDateFormat = newDateFormat.replace('yyyy', yearLong);
  60. newDateFormat = newDateFormat.replace('yy', yearShort);
  61. allDivs[i].innerHTML = newDateFormat;
  62. }
  63. }
  64. }
  65. formatEntryDate();
  66. </script>
複製代碼


*******************************************************





[ 本帖最後由 aR敏╭● 於 2006-6-25 05:46 PM 編輯 ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

5#
發表於 05-11-30 05:46 PM |只看該作者
10. 卷軸篇 ;;;

外框卷軸 ;;;
  1. <style>
  2. body{
  3. scrollbar-arrow-color: #000000;
  4. scrollbar-3dlight-color: #999999;
  5. scrollbar-highlight-color: #ffffff;
  6. scrollbar-face-color: #999999;
  7. scrollbar-track-color: #cccccc;
  8. scrollbar-shadow-color: #666666;
  9. scrollbar-darkshadow-color: #000000;
  10. }
  11. </style> 
複製代碼


*******************************************************

外框變色卷軸 ;;;
  1. <script language="JavaScript">
  2. <!--
  3. colours = new Array('#000000', '#999999', '#6699ff', '#fcc0e5', '#ff409f', '#cc99ff')
  4. function flash()
  5. {
  6. var clrPos = Math.floor(Math.random() * colours.length)
  7. with(window.document.body.style)
  8. {
  9. scrollbarFaceColor = document.bgColor;
  10. scrollbarTrackColor = document.bgColor;
  11. scrollbarArrowColor = colours[clrPos];
  12. scrollbarHighlightColor = document.bgColor;
  13. scrollbar3dLightColor = colours[clrPos];
  14. scrollbarShadowColor = document.bgColor;
  15. scrollbarDarkShadowColor = colours[clrPos];
  16. borderWidth = 2;
  17. borderStyle = 'solid';
  18. borderColor = colours[clrPos];
  19. }
  20. }
  21. if (document.all)window.document.body.onscroll = flash;
  22. //-->
  23. </script>
複製代碼


*******************************************************

個人資料增添卷軸 ;;;
  1. <script type="text/javascript">
  2. function adjustSirListHeight()
  3. {
  4.    // *** define the height of your SIR-list in the line below
  5.    var sirListHeight = '120px';
  6.    var allTables = document.getElementsByTagName('tbody');
  7.    for (i=0; i < allTables.length; i++)
  8.    {
  9.        if ((allTables[i].innerHTML.indexOf('Profile') != -1) &&
  10.            (allTables[i].innerHTML.toUpperCase().indexOf('<TABLE') == -1))
  11.        {
  12.            sirlist = allTables[i].lastChild;
  13.            temp = sirlist.firstChild.innerHTML;
  14.            sirlist.removeChild(sirlist.firstChild);
  15.            td = document.createElement('td');
  16.            div = document.createElement('div');
  17.            div.style.width = '190px';
  18.            div.style.height = sirListHeight;
  19.            div.style.overflow = 'auto';
  20.            div.innerHTML = temp;
  21.            td.appendChild(div);
  22.            sirlist.appendChild(td);
  23.            break;
  24.        }
  25.    }
  26. }
  27. if (navigator.userAgent.indexOf('Mac') == -1)
  28.    if ((document.URL.indexOf('weblogs') == -1) &&
  29.        (document.URL.indexOf('guestbook') == -1) &&
  30.        (document.URL.indexOf('events') == -1) &&
  31.        (document.URL.indexOf('reviews') == -1))
  32.        adjustSirListHeight();
  33. </script>
複製代碼


*******************************************************

Subscriptions增添卷軸 ;;;  
  1. <script type="text/javascript">
  2. function adjustSirListHeight()
  3. {
  4. // define the height of your SIR-list in the line below
  5. var sirListHeight = '90px';
  6. var allTables = document.getElementsByTagName('tbody');
  7. for (i=0; i < allTables.length; i++)
  8. {
  9. if ((allTables[i].innerHTML.indexOf('Sites I Read') != -1) &&
  10. (allTables[i].innerHTML.toUpperCase().indexOf('<TABLE') == -1))
  11. {
  12. sirlist = allTables[i].lastChild;
  13. temp = sirlist.firstChild.innerHTML;
  14. sirlist.removeChild(sirlist.firstChild);
  15. td = document.createElement('td');
  16. div = document.createElement('div');
  17. div.style.width = '165px';
  18. div.style.height = sirListHeight;
  19. div.style.overflow = 'auto';
  20. div.innerHTML = temp;
  21. td.appendChild(div);
  22. sirlist.appendChild(td);
  23. break;
  24. }
  25. }
  26. }
  27. if (navigator.userAgent.indexOf('Mac') == -1)
  28. if ((document.URL.indexOf('weblogs') == -1) &&
  29. (document.URL.indexOf('guestbook') == -1) &&
  30. (document.URL.indexOf('events') == -1) &&
  31. (document.URL.indexOf('reviews') == -1))
  32. adjustSirListHeight();
  33. </script>
複製代碼


*******************************************************

Blogrings增添卷軸 ;;;
  1. <!-- begin code provided by Kkx3.com-->
  2. <script type="text/javascript">
  3. function adjustSirListHeight()
  4. {
  5.    // *** define the height of your SIR-list in the line below
  6.    var sirListHeight = '框高度px';
  7.    var allTables = document.getElementsByTagName('tbody');
  8.    for (i=0; i < allTables.length; i++)
  9.    {
  10.        if ((allTables[i].innerHTML.indexOf('Blogrings') != -1) &&
  11.            (allTables[i].innerHTML.toUpperCase().indexOf('<TABLE') == -1))
  12.        {
  13.            sirlist = allTables[i].lastChild;
  14.            temp = sirlist.firstChild.innerHTML;
  15.            sirlist.removeChild(sirlist.firstChild);
  16.            td = document.createElement('td');
  17.            div = document.createElement('div');
  18.            div.style.width = '190px';
  19.            div.style.height = sirListHeight;
  20.            div.style.overflow = 'auto';
  21.            div.innerHTML = temp;
  22.            td.appendChild(div);
  23.            sirlist.appendChild(td);
  24.            break;
  25.        }
  26.    }
  27. }
  28. if (navigator.userAgent.indexOf('Mac') == -1)
  29.    if ((document.URL.indexOf('weblogs') == -1) &&
  30.        (document.URL.indexOf('guestbook') == -1) &&
  31.        (document.URL.indexOf('events') == -1) &&
  32.        (document.URL.indexOf('reviews') == -1))
  33.        adjustSirListHeight();
  34. </script>
  35. <!-- end code provided by Kkx3.com -->
複製代碼


*******************************************************

日記內容框加卷軸 ;;;
Step 1 ;;;
  1. <style type="text/css">
  2. .custom{
  3. width: 200px;
  4. height: 200px;
  5. z-index:100;
  6. overflow: auto;
  7. border: px #000000 solid;
  8. background: #ffffff;
  9. }</style>
複製代碼

** 放Header
Step 2 ;;;
  1. <script>
  2. var tds = document.getElementsByTagName ('a');
  3. for (var i = 0; i < tds.length; i++) {
  4. timeString = tds[i].innerText;
  5. if(timeString.match(/\d+:\d+ [ap]m\b/i)){
  6. if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
  7. table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
  8. stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild;
  9. inner = stuff.innerHTML
  10. stuff.innerHTML="";
  11. stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>');

  12. }
  13. }
  14. </script>
複製代碼


*******************************************************

[ 本帖最後由 aR敏╭● 於 2006-6-25 06:04 PM 編輯 ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

6#
發表於 05-11-30 05:46 PM |只看該作者
13. 日記框篇 ;;;

日記外框(一) ;;;
  1. <style>body {border-style: liquid ; border-top-width: 10px; border-bottom-width: 10px; border-left-width: 10px;
  2. border-right-width: 10px; border-color: #cccccc;}</style>
複製代碼

**只要修改數字(粗幼度)和色碼即可

*******************************************************

日記外框(二) ;;;
  1. <BODY style="border-bottom: #色碼
  2. 底邊粗t solid; border-top: #色碼
  3. 上邊粗t solid; border-left: #色碼
  4. 左邊粗t solid; border-right: #色碼
  5. 右邊粗t solid"></TBODY>
複製代碼


*******************************************************

變色外框 ;;;
  1. <SCRIPT LANGUAGE="JavaScript">
  2. colours=new Array('cccccc','ffffff','000000')
  3. function gs(){
  4. var clrPos=Math.floor(Math.random()*colours.length)
  5. with (window.document.body.style){
  6. borderWidth=10;
  7. borderStyle='solid';
  8. borderColor=colours[clrPos];}}
  9. if (document.all)window.document.body.onscroll=gs;
  10. </SCRIPT>
複製代碼


*******************************************************

日記外框+素材 ;;;
  1. <head>
  2.   <title>USERNAME's diary</title>
  3.   <style type="text/css">
  4.    body{
  5.     background-color: #FF00FF;(日記外框可加<img></img>
  6.     scrollbar-arrow-color: #CCFFCC;
  7.     scrollbar-face-color: #CCCC99;
  8.     scrollbar-track-color: #CC9966;
  9.     scrollbar-highlight-color: #CC6633;
  10.     scrollbar-shadow-color: #CC3300;
  11.     scrollbar-3dlight-color: #FBE1F5;
  12.     scrollbar-darkshadow-color: #FBE1F5;}(以上都是外框拉上下個顏色)
  13.    .entry{
  14.     position: static;
  15.     z-index:1;
  16.     padding:8px;
  17.     border:2px solid #330000;(本身日記個邊)
  18.     background-color: #00FF00;(本身日記個background-color可以加<img></img>)
  19.     color: #0033CC;
  20.     font:13px 'Trebuchet MS';
  21.     line-height:18px;
  22.     overflow:auto;
  23.     scrollbar-track-color: #F3A1DF;(here)
  24.     scrollbar-3dlight-color: #F3A1DF;
  25.     scrollbar-darkshadow-color: #660066;
  26.     scrollbar-face-color: #F3A1DF;
  27.     scrollbar-highlight-color: #F3A1DF;
  28.     scrollbar-shadow-color: #F3A1DF;
  29.     scrollbar-arrow-color: #DB1FAD;(here - there is 本身日記外框拉上下個顏色)
  30.     box-sizing:border-box;
  31.     -moz-box-sizing:border-box;}
  32.    h1{
  33.     margin:0px;
  34.     font:17px 'Trebuchet MS';
  35.     font-weight:bold;
  36.     text-align:left;
  37.     border-bottom:1px dashed #DB1FAD;}
  38.    h2{
  39.     margin:0px;
  40.     font:13px 'Trebuchet MS';
  41.     font-weight:bold;
  42.     text-align:right;}
  43.    h3{
  44.     margin:0px;
  45.     font:13px 'Trebuchet MS';
  46.     font-weight:bold;
  47.     text-align:left;}
  48.    h4{
  49.     margin:0px;
  50.     font:14px 'Trebuchet MS';
  51.     font-weight:bold;
  52.     text-align:left;}
  53.    input,textarea{
  54.     font:11px 'Verdana';
  55.     color:#DB1FAD;
  56.     background-color:#FBE1F5;
  57.     border:1px solid #DB1FAD;
  58.     scrollbar-face-color:#FBE1F5;
  59.     scrollbar-track-color:#FBE1F5;
  60.     scrollbar-highlight-color:#FBE1F5;
  61.     scrollbar-shadow-color:#FBE1F5;
  62.     scrollbar-3dlight-color:#FBE1F5;
  63.     scrollbar-darkshadow-color:#FBE1F5;}
  64.    a:link{
  65.     color:#DB1FAD;
  66.     text-decoration:none;
  67.     border-bottom:1px dashed #FBE1F5;}
  68.    a:visited{
  69.     color:#DB1FAD;
  70.     text-decoration:none;
  71.     border-bottom:1px dashed #FBE1F5;}
  72.    a:hover{
  73.     color:#FBE1F5;
  74.     text-decoration:none;
  75.     border-bottom:1px dashed #DB1FAD;}
  76.    a:active{
  77.     color:#FBE1F5;
  78.     text-decoration:none;
  79.     border-bottom:1px solid #DB1FAD;}
  80.   </style>
  81. </head>
  82. <body>
  83.   <div class="entry" style="top:90; left:90; width:900; height:850;">
  84. </body>
  85. </html>
複製代碼


*******************************************************

日記背景外框 ;;;
  1. </table><DIV align="center" valign="middle" style="filter: alpha(opacity=100); overflow: auto; width: 800px; height: 600px; background-image: url('圖片網址'); background-color: #FFFFFF; border: 2px dotted #000000">
複製代碼


*******************************************************

日記內容框 ;;;
  1. <style type="text/css">
  2. table.blogbody {
  3. /* this edits the other the place where the  blog is */;
  4. family-font: verdana;
  5. border: 粗度px double #色;
  6. width:闊px;
  7. FILTER: alpha(opacity=透明度);

  8. </style>
複製代碼


*******************************************************

14. 日期篇 ;;;

修改日期板面 ;;;

  1. <style type="text/css">
  2. div.blogheader, .caption {
  3. font-family:日期字型;
  4. text-transform:none;
  5. font-size:日期字大細px;
  6. line-height:高度px;
  7. font-weight:bolder;
  8. color:#字色;
  9. letter-spacing:相隔px;
  10. text-align: 放的位置CENTER、LEFT、RIGHT;
  11. background-image:url(' 背景圖 ');
  12. background-color: 背景色;
  13. height: 日期框高px;
  14. width: 日期框闊px;
  15. }
  16. </style>
複製代碼


*******************************************************

修改日期字 ;;;

  1. <script type="text/javascript">
  2. // ====================
  3. // listing of available constants (using date
  4. // "Tuesday, March 16, 2004" as an example):
  5. // dd = 16
  6. // ddd = Tue
  7. // dddd = Tuesday
  8. // mm = 03
  9. // mmm = Mar
  10. // mmmm = March
  11. // yy = 04
  12. // yyyy = 2004
  13. // ====================

  14. function formatEntryDate()
  15. {
  16. // adjust the dateFormatStr below as you see fit
  17. // ========================================
  18. dateFormatStr = '<table width="75%"><tr><td style="border-top: none; border-bottom: 2px dashed #999999; border-left: none; border-right: none; background-color: #ffccff; background-image: none; text-align: left; font-family: verdana; font-size: 15px; font-color: #000000; font-weight: bold;">* dd-mmm-yyyy  ddd = ]</td></tr></table>';
  19. // ========================================
  20. function getMonthNr(sMonth)
  21. {
  22. months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  23. for (var n = 0; n < months.length; ++n)
  24. {
  25. if (months[n] == sMonth)
  26. {
  27. if ( n + 1 < 10)
  28. return '0' + (n + 1).toString()
  29. else
  30. return (n + 1).toString();
  31. }
  32. }
  33. }
  34. allDivs = document.getElementsByTagName('div');
  35. for (var i = 0; i < allDivs.length; ++i)
  36. {
  37. if (allDivs[i].className == 'blogheader')
  38. {
  39. newDateFormat = dateFormatStr;
  40. entryDate = allDivs[i].innerHTML;
  41. // day
  42. dayLong = entryDate.substr(0, entryDate.indexOf(',')); // dddd
  43. dayShort = dayLong.substr(0, 3); // ddd
  44. tempStr = entryDate.substr(dayLong.length + 1);
  45. dayNr = tempStr.substr(tempStr.indexOf(',') - 2, 2); // dd
  46. newDateFormat = newDateFormat.replace('dddd', dayLong);
  47. newDateFormat = newDateFormat.replace('ddd', dayShort);
  48. newDateFormat = newDateFormat.replace('dd', dayNr);
  49. // month
  50. monthLong = tempStr.substr(1, tempStr.indexOf(',') - 3); // mmmm
  51. monthShort = monthLong.substr(0, 3); // mmm
  52. monthNr = getMonthNr(monthShort); // mm
  53. newDateFormat = newDateFormat.replace('mmmm', monthLong);
  54. newDateFormat = newDateFormat.replace('mmm', monthShort);
  55. newDateFormat = newDateFormat.replace('mm', monthNr);
  56. // year
  57. yearLong = tempStr.substr(tempStr.indexOf(',') + 2); // yyyy
  58. yearShort = yearLong.substr(2); // yy
  59. newDateFormat = newDateFormat.replace('yyyy', yearLong);
  60. newDateFormat = newDateFormat.replace('yy', yearShort);
  61. allDivs[i].innerHTML = newDateFormat;
  62. }
  63. }
  64. }
  65. formatEntryDate();
  66. </script>
複製代碼


*******************************************************




[ Last edited by aR敏╭● on 2006-3-6 at 10:13 PM ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

7#
發表於 05-11-30 05:47 PM |只看該作者
15. 改字篇 ;;;

改Friendd List朋友名 ;;;
  1. <script language="javascript">
  2. <!--
  3. var links = document.getElementsByTagName ("a");
  4. for (var l = 0; l < links.length; l++) {
  5. str = links[l].innerHTML;
  6. if (str.match (/d+:d+ (am|pm)/i)) links[l]
  7. else if (str.match (/idname/i)) links[l].innerHTML = str.replace (/idname/i, "你想改ge名");
  8. else if (str.match (/idname/i)) links[l].innerHTML = str.replace (/idname/i, "你想改ge名");
  9. }//-->
  10. </script>
複製代碼

**idname打返subcription本身對方個id,打返你想改成既字
    如你個朋友個id係abc_123,你又想改佢個名做小明
    咁*idname*就係打abc_123,而*你想改ge名*就係打小明喇


*******************************************************

改Comment,Epops,E-mail等字 ;;;
  1. <script language="javascript">
  2. <!--
  3. var links = document.getElementsByTagName ("a");
  4. for (var l = 0; l < links.length; l++) {
  5. str = links[l].innerHTML;
  6. if (str.match (/d+:d+ (am|pm)/i)) links[l]
  7. else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "你想改既add erops既中文字");
  8. else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "你想改既erop既中文字");
  9. else if (str.match (/add comments/i)) links[l].innerHTML = str.replace (/add comments/i, "你想改既add comment既中文字");
  10. else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "你想改既comment既中文字");
  11. else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "你想改既email既中文字");
  12. }//-->
  13. </script>
複製代碼

**想將d字轉成圖就為<img src=圖片網址 border=0>

*******************************************************

改Next 5字 ;;;
  1. <!--Get this code at [url]http://help.xanga.com/replacelinks.htm//--[/url]>
  2. <script language="javascript">
  3. <!--
  4. var links = document.getElementsByTagName ("a");
  5. for (var l = 0; l < links.length; l++) {
  6. str = links[l].innerHTML;
  7. if (str.match (/d+:d+ (am|pm)/i)) links[l]
  8. else if (str.match (/Next 5/i)) links[l].innerHTML = str.replace (/Next 5/i, "要改的字");
  9. }//-->
  10. </script>
複製代碼


*******************************************************

改哂Xanga內所有字 ;;;
  1. <script type="text/javascript">
  2. //
  3. function replaceWords()
  4. {
  5. var oldWords = new Array(
  6. "State:",
  7. "Name:",
  8. "Country:",
  9. "Birthday:",
  10. "Gender:",
  11. "Interests:",
  12. "Expertise:",
  13. "Email:",
  14. "Website:",
  15. "MSN:",
  16. "email it",
  17. "Subscriptions",
  18. "My Blogrings",
  19. "Posting Calendar",
  20. "Get Involved!",
  21. "Subscribe to ",
  22. "read my profile",
  23. "sign my guestbook",
  24. "Occupation",
  25. "Go To Date",
  26. "Next 5",
  27. "Previous 5");

  28. var newWords = new Array(
  29. "State:",
  30. "Name:",
  31. "Country:",
  32. "Birthday:",
  33. "Gender:",
  34. "Interests:",
  35. "Expertise:",
  36. "Email:",
  37. "Website:",
  38. "MSN:",
  39. "email it",
  40. "Subscriptions",
  41. "My Blogrings",
  42. "Posting Calendar",
  43. "Get Involved!",
  44. "Subscribe to ",
  45. "read my profile",
  46. "sign my guestbook",
  47. "Occupation",
  48. "Go To Date",
  49. "Next 5",
  50. "Previous 5");

  51. allTableData = document.getElementsByTagName('td');
  52. allTableHeaders = document.getElementsByTagName('th');

  53. var collections = new Array(allTableData,allTableHeaders);

  54. for (var k = 0 ; k < collections.length ; ++k )
  55. {
  56. for (var i = 0 ; i < collections[k].length ; ++i )
  57. {
  58. if (collections[k].innerHTML.indexOf('TABLE') == -1)
  59. {
  60. for ( var n = 0 ; n < oldWords.length; ++n )
  61. {
  62. var indx = collections[k].innerHTML.indexOf(oldWords[n])
  63. while (indx != -1)
  64. {
  65. var replacement = '';
  66. indx = collections[k].innerHTML.indexOf(oldWords[n]);
  67. replacement = collections[k].innerHTML.replace(oldWords[n], newWords[n]);
  68. if(navigator.userAgent.toLowerCase().indexOf('compatible')>0){collections[k].innerHTML=replacement;//please use supported code at [url]http://help.xanga.com/codes.htm[/url]
  69. }
  70. break;
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. replaceWords();
  78. //
  79. </script>
複製代碼


*******************************************************

16. 超連結篇 ;;;

Link會變成漸變 ;;;


  1. <style>
  2. a:hover, a:link, a:visited
  3. {filter:blur; .alpha
  4. {width: inherit; height: 1;
  5. filter: alpha
  6. (Opacity=50, FinishOpacity=10, Style=1, StartX=0, StartY=0, FinishX=580, FinishY=0);}
  7. </style>
複製代碼


*******************************************************

Link會變成有陰影(一) ;;;


  1. <style>
  2. a:hover, a:link, a:visited
  3. {filter:blur; .alpha
  4. {width: inherit; height: 1;
  5. filter:shadow(color=#ff0800,offx=6,offy=1,positive=true);}
  6. </style>
複製代碼

**offx係反射果度向橫既大細
    offy係反射向下既大細


*******************************************************

Link會變成有陰影(二) ;;;


  1. <style type="text/css">
  2. <!-- a:link {filter:glow(color:#FF8000, strength=1);height:0px;width:inherit}
  3. a:active {filter:glow(color:#000000, strength=1);height:0px;width:inherit}
  4. a:visited {filter:glow(color:#ff0800, strength=1);height:0px;width:inherit}
  5. a:hover {filter:glow(color:#80FF40, strength=1);height:0px;width:inherit} --></style>
複製代碼

**link係平時條link既色
    active係岩岩禁落去條link既色
    visited係active一樣,但係出現active既情況後
    hover係個滑鼠指去條link既色


*******************************************************

Link會變成變色字 ;;;



  1. <script language=javascript>
  2. var rate = 80; // Increase amount(The degree of the transmutation)
  3. var obj; // The object which event occured in
  4. var act = 0; // Flag during the action
  5. var elmH = 0; // Hue
  6. var elmS = 128; // Saturation
  7. var elmV = 255; // Value
  8. var clrOrg; // A color before the change
  9. var TimerID; // Timer ID
  10. si=setInterval;
  11. if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) {
  12. Browser = true;
  13. } else {
  14. Browser = false;
  15. }
  16. if (Browser) {
  17. document.onmouseover = doRainbowAnchor;
  18. document.onmouseout = stopRainbowAnchor;
  19. }
  20. function doRainbow()
  21. {
  22. if (Browser && act != 1) {
  23. act = 1;
  24. obj = event.srcElement;
  25. clrOrg = obj.style.color;
  26. TimerID = si("ChangeColor()",100);
  27. }
  28. }
  29. function stopRainbow()
  30. {
  31. if (Browser && act != 0) {
  32. obj.style.color = clrOrg;
  33. clearInterval(TimerID);
  34. act = 0;
  35. }
  36. }
  37. function doRainbowAnchor()
  38. {
  39. if (Browser && act != 1) {
  40. obj = event.srcElement;
  41. while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  42. obj = obj.parentElement;
  43. if (obj.tagName == 'A' || obj.tagName == 'BODY')
  44. break;
  45. }
  46. if (obj.tagName == 'A' && obj.href != '') {
  47. act = 1;
  48. clrOrg = obj.style.color;
  49. TimerID = si("ChangeColor()",100);
  50. }
  51. }
  52. }
  53. //document.write.blogring
  54. function stopRainbowAnchor()
  55. {
  56. if (Browser && act != 0) {
  57. if (obj.tagName == 'A') {
  58. obj.style.color = clrOrg;
  59. clearInterval(TimerID);
  60. act = 0;
  61. }
  62. }
  63. }
  64. function ChangeColor()
  65. {
  66. obj.style.color = makeColor();
  67. }
  68. function makeColor()
  69. {
  70. // HSVtoRGB
  71. if (elmS == 0) {
  72. elmR = elmV; elmG = elmV; elmB = elmV;
  73. }
  74. else {
  75. t1 = elmV;
  76. t2 = (255 - elmS) * elmV / 255;
  77. t3 = elmH % 60;
  78. t3 = (t1 - t2) * t3 / 60;
  79. if (elmH < 60) {
  80. elmR = t1; elmB = t2; elmG = t2 + t3;
  81. }
  82. else if (elmH < 120) {
  83. elmG = t1; elmB = t2; elmR = t1 - t3;
  84. }
  85. else if (elmH < 180) {
  86. elmG = t1; elmR = t2; elmB = t2 + t3;
  87. }
  88. else if (elmH < 240) {
  89. elmB = t1; elmR = t2; elmG = t1 - t3;
  90. }
  91. else if (elmH < 300) {
  92. elmB = t1; elmG = t2; elmR = t2 + t3;
  93. }
  94. else if (elmH < 360) {
  95. elmR = t1; elmG = t2; elmB = t1 - t3;
  96. }
  97. else {
  98. elmR = 0; elmG = 0; elmB = 0;
  99. }
  100. }
  101. //document.write.blogring
  102. elmR = Math.floor(elmR);
  103. elmG = Math.floor(elmG);
  104. elmB = Math.floor(elmB);
  105. clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16);
  106. elmH = elmH + rate;
  107. if (elmH >= 360)
  108. elmH = 0;
  109. return clrRGB;
  110. }
  111. </script>
複製代碼


*******************************************************

按Link有框 ;;;


  1. <style>
  2. a:hover{border: 4px dotted #ff0800; font size: 3pt;}
  3. </style>
複製代碼


*******************************************************

17. 透明篇 ;;;

整個板面透明 ;;;
  1. <STYLE>
  2. table{filter:Alpha(Opacity=50)}
  3. </STYLE>
複製代碼


*******************************************************

個人資料框透明 ;;;
  1. <style type="text/css">
  2. table.left { FILTER: alpha(opacity=85); }
  3. </style>
複製代碼


*******************************************************

日記透明 ;;;
  1. <script language="javascript">
  2. //Sets blog opacity (0-100)
  3. opcty = 10;

  4. //Sets rollover opacity
  5. msvropcty = 100;

  6. ////////////////////////////////////

  7. tables = document.getElementsByTagName('table');

  8. for(var j=0;j<tables.length;j++){

  9. if(tables[j].className == "blogbody"){

  10. tables[j].style.filter = "alpha(opacity=" + opcty + ")";
  11. tables[j].onmouseover = function(){this.style.filter = "alpha(opacity=" + msvropcty + ")";}
  12. tables[j].onmouseout = function(){this.style.filter = "alpha(opacity=" + opcty + ")";}

  13. }

  14. }

  15. //--></script>
複製代碼

**日記係透明既,滑鼠指向篇日記時先會睇得到

*******************************************************

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

8#
發表於 05-11-30 05:52 PM |只看該作者
18. 音樂篇 ;;;
**Music Box可以放係任何一個位置,好Header,Website Stats及Public Profile,亦可加於日記之中

Black Media Player ;;;


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


*******************************************************



[ Last edited by aR敏╭● on 2006-4-22 at 12:07 AM ]

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

9#
發表於 05-11-30 05:53 PM |只看該作者
StateChangeHandler Player ;;;


  1. <OBJECT ID="Player" height="0" width="0" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
  2. <PARAM NAME="uiMode" VALUE="invisible">
  3. <PARAM NAME="Autostart" VALUE="False">
  4. </object>

  5. <FORM ID="form">

  6. <SELECT ID="playlist" size="1">

  7. <!-- Add song info that appears in drop down list here -->
  8. <option value="0">display出黎,,, 歌名</option>
  9. <option value="1">display出黎,,, 歌名</option>
  10. <option value="2">display出黎,,, 歌名</option>
  11. <option value="3">display出黎,,, 歌名</option>
  12. <option value="4">display出黎,,, 歌名</option>

  13. </SELECT>

  14. <BR>
  15. <BUTTON ID="BackButton" onClick="Back(forms['form'].playlist);"> << </BUTTON>
  16. <BUTTON ID="PlayPauseButton" onClick="PlayPause(forms['form'].playlist);"><FONT color="green">  Play  </FONT></BUTTON>
  17. <BUTTON ID="NextButton" onClick="Next(forms['form'].playlist);"> >> </BUTTON>
  18. <BUTTON ID="StopButton" onclick="Stop();"><FONT color="maroon">Stop</FONT></BUTTON>
  19. <b><font size="3" color="black">Shuffle</font></b><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);" value="ON">

  20. </FORM>
  21. </CENTER>


  22. <comment ID="PlayHTML"><FONT color="green">  Play  </FONT></comment>
  23. <comment ID="ShuffleOnHTML"><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);"></comment>
  24. <comment ID="ShuffleOffHTML"><INPUT TYPE=checkbox UNCHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);"></comment>


  25. <script ID="Main" Language="JavaScript">

  26.         var songs = new Array();

  27.         //*******************************//
  28.         //****** CHANGEABLE STUFF *******//
  29.         //*******************************//
  30.         
  31.         var shuffle = false;  // false = shuffle off, true = shuffle on

  32.         var autoStart = true;   // false = autoStart off, true = autoStart on
  33.         
  34.         var numberTracks = true;  // true = place track number in front of list items, false = no track numbers
  35.         
  36.         // Add song URLs here (make sure it matches up with the order you have for song info, and urls need quotes):
  37.         songs[0]="歌曲網址";
  38.         songs[1]="歌曲網址";
  39.         songs[2]="歌曲網址";
  40.         songs[3]="歌曲網址";
  41.         songs[4]="歌曲網址";
  42.         
  43.         //*******************************//
  44.         //*******************************//

  45. // Initializations //
  46. with (document){
  47.         var length = forms['form'].playlist.length;

  48.         if(numberTracks){
  49.   for (var i = 0; i < length; i++){
  50.           forms['form'].playlist.options[i].innerHTML = (i+1) + " - " + forms['form'].playlist.options[i].innerHTML;
  51.   }
  52.         }
  53.         
  54.         if (shuffle) {
  55.   var randsg = Math.floor(Math.random()*songs.length);
  56.   Player.url = songs[randsg];
  57.   forms['form'].playlist.options[randsg].selected = true;
  58.   forms['form'].ShuffleSwitch.outerHTML = ShuffleOnHTML.innerHTML;
  59.         }

  60.         else {
  61.   forms['form'].ShuffleSwitch.outerHTML = ShuffleOffHTML.innerHTML;
  62.   Player.url = songs[0];
  63.         }

  64.         if(autoStart){
  65.   var snum = forms['form'].playlist.selectedIndex;
  66.   if(Player.url != songs[snum]){
  67.           Player.url = songs[snum];
  68.   }
  69.   Player.controls.Play();
  70.         }
  71. }

  72. // Functions //
  73. // Discription: "PlayPause" will toggle playing and pausing if the same song is still selected,
  74. //              otherwise it will load the newly selected song
  75. function PlayPause(list) {
  76.         var snum = list.selectedIndex;
  77.         
  78.         if((Player.url == songs[snum] && Player.url != "") && Player.playState != 1){
  79.   if(Player.playState == 3){
  80.           Player.controls.Pause();
  81.   }
  82.   
  83.   else {
  84.           Player.controls.Play();
  85.   }
  86.         }

  87.         else {
  88.   Player.url = songs[snum];
  89.   Player.controls.Play();
  90.         }
  91. }

  92. // Discription: "Next" will move to the next music file if shuffle is off
  93. //              otherwise it will load a random song. Calls PlayPause to start music.
  94. function Next(list) {
  95.         var snum = list.selectedIndex;
  96.         if (!shuffle) {
  97.   if (snum == list.length-1) {
  98.           snum = -1;
  99.   }
  100.   snum++;
  101.         }
  102.         
  103.         else {
  104.   var temp;
  105.   do{
  106.           temp = Math.floor(Math.random()*songs.length);
  107.   } while(temp == snum);
  108.   snum = temp;
  109.         }
  110.         
  111.         list.options[snum].selected = true;
  112.         PlayPause(list);
  113. }

  114. // Discription: "Back" does the same thing as "Next" but moves backwads
  115. //              through the list. If shuffle is on then picks a random song.
  116. function Back(list) {
  117.         var snum = list.selectedIndex;
  118.         if (!shuffle) {
  119.   if (snum == 0){
  120.           snum = list.length;
  121.   }
  122.   snum--;
  123.         }
  124.         
  125.         else {
  126.   var temp;
  127.   do{
  128.           temp = Math.floor(Math.random()*songs.length);
  129.   } while(temp == snum);
  130.   snum = temp;
  131.         }
  132.         
  133.         list.options[snum].selected = true;
  134.         PlayPause(list);
  135. }

  136. // Discription: Self explanitory.
  137. function Stop(){
  138.         Player.controls.Stop();
  139. }

  140. // Discription: Makes the shuffle flag the same as the status of the CheckBox
  141. //    The status of the checkbox (true/false) indicates if the box is checked
  142. function ToggleShuffle(CheckBox) {
  143.         shuffle = CheckBox.status;
  144. }

  145. </SCRIPT>

  146. <script ID="StateChangeHandler" Language = "JavaScript" For = "Player" Event = playStateChange(NewState)>

  147. // Description: This is an interupt handler used to handle instances when the
  148. //              state of the player changes to play or stop for example.

  149. //STATE.innerText = NewState;

  150. switch(NewState){
  151.         case 8:  // Handles player after it just finishes playing through a song
  152.   var num = document.forms['form'].playlist.selectedIndex;
  153.         
  154.   if (!shuffle){
  155.           if(num == document.forms['form'].playlist.length-1){
  156.     num = -1;
  157.           }
  158.   
  159.           num++;
  160.   }
  161.   else {
  162.           var temp;
  163.           do{
  164.     temp = Math.floor(Math.random()*songs.length);
  165.           } while(temp == num);
  166.           num = temp;
  167.   }
  168.         
  169.   document.forms['form'].playlist.options[num].selected = true;
  170.         
  171.   PreviousState = NewState;
  172.   break;

  173.         case 1: // Handles player after it stops
  174.   if(PreviousState == 8){
  175.           var num = document.forms['form'].playlist.selectedIndex;
  176.           Player.settings.autoStart = true;
  177.           Player.url = songs[num];
  178.           PreviousState = NewState;
  179.   }
  180.   
  181.   else if (PreviousState != 3 && PreviousState != 2){
  182.           Player.controls.Play();
  183.           Player.settings.autoStart = false;
  184.   }
  185.   
  186.   else{
  187.           forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
  188.   }
  189.   break;

  190.         case 3: // Handles player after it starts to play
  191.   PreviousState = NewState;
  192.   forms['form'].PlayPauseButton.innerHTML = "Pause";
  193.   shuffle = document.forms['form'].ShuffleSwitch.status;
  194.   break;

  195.         case 2: // Handles player after being paused
  196.   PreviousState = NewState;
  197.   forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
  198.   break;

  199.         default:
  200. }

  201. </SCRIPT>
複製代碼


*******************************************************

RealOne Player ;;;


  1. <embed src="歌曲網址" width="300" height="50" autostart="0" loop="true" flase=no>
複製代碼


*******************************************************

Lthhung Player ;;;


  1. <script language="javascript">
  2. function songstop(){
  3. if (document.layers) {document.ram.document.write(" "); document.lthhung.document.close()}
  4. if (document.all) lthhung.netinnerHTML=" "}
  5. function songplay(){
  6. if (document.layers) {
  7. document.lthhung.document.write("<embed src='+sound+' autostart='true' loop='true' width='0' height='0'>"); document.ram.document.close()}
  8. if (document.all) lthhung.innerHTML="<embed src='"+sound+"' autostart='true' loop='true' width='0' height='0'>"}
  9. function getNewSound(){
  10. sound=document.hung.music.options[document.hung.music.selectedIndex].value;
  11. songstop()
  12. songplay()}
  13. </script>
  14. <a id="lthhung"></a>
  15. <form name="hung">
  16. <select onchange="getNewSound()" size="1" name="music">
  17. <option style="BACKGROUND-COLOR:purple;color:pink" >*選首您喜歡的音樂*</option>
  18. <option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
  19. <option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
  20. <option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
  21. <option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
  22. <option style="BACKGROUND-COLOR:yellow;color:blue" value="音樂網址">歌名
  23. </select>
  24. </form>
複製代碼


*******************************************************



Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

10#
發表於 05-11-30 05:54 PM |只看該作者
隨機播放(一) ;;;
  1. <script language="JavaScript"><!--
  2. // modified to eliminate 'undefined' error by micron
  3. // for more xanga scripts and help go to createblog.com

  4. ctips = new Array();
  5. ctips[0]="display出來的,, 歌名";
  6. ctips[1]="display出來的,, 歌名";
  7. ctips[2]="display出來的,, 歌名";
  8. ctips[3]="display出來的,, 歌名";

  9. tips = new Array();
  10. tips[0]="歌曲網址";
  11. tips[1]="歌曲網址";
  12. tips[2]="歌曲網址";
  13. tips[3]="歌曲網址";

  14. index=Math.floor(Math.random() * tips.length);
  15. document.write("<center><embed src="+tips[index]+" width=0 height=0 align=top autostart=true loop=true controls=hidden type=audio/x-pn-realaudio-plugin exts=ra,ram Init fn=load-types mime-types=mime.types></embed></center>")
  16. document.write("<center><font color=#000000>"+ctips[index]+"</center>")
  17. //-->
  18. </script>
複製代碼

**呢個係冇Music Box,係每一次Refresh既時候都會隨機咁播放

*******************************************************

隨機播放(二) ;;;
  1. <script Language="JavaScript">
  2. tips = new Array(2);
  3. tips[0] = "歌網址";
  4. tips[1] = "歌網址";
  5. index = Math.floor(Math.random() * tips.length);
  6. document.write("<EMBED SRC=" + tips[index] + " autostart=true width=0 height=0 loop=true hidden=TRUE></EMBED>");
  7. </script>
複製代碼

**呢個都冇Music Box,Refresh時會隨機播放

*******************************************************

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

UID
313437 
帖子
7633 
積分
6563 
Good
0  
註冊時間
04-11-29 
在線時間
1324 小時 

十週年勳章(賀詞)

11#
發表於 05-11-30 06:22 PM |只看該作者
19. 播放器篇 ;;;

RealOne Player ;;;


  1. <embed type="audio/x-pn-realaudio-plugin" console="MTV" controls="ImageWindow" height="180" width="220" autostart="false"><center><embed type="audio/x-pn-realaudio-plugin" console="MTV" controls="ControlPanel" height="44" width="220" autostart="true" src="短片網址">
複製代碼


*******************************************************

短片播放器 ;;;
  1. <EMBED SRC="影片網址" WIDTH="300" HEIGHT="300"
  2. AUTOSTART="0" SHOWCONTROLS="0" LOOP="0"> </EMBED>  
複製代碼

**解釋 ;;;

<EMBED SRC="影片網址" WIDTH="300" HEIGHT="300"
AUTOSTART="0" SHOWCONTROLS="0" LOOP="0"> </EMBED>

紅色 :: VIDEO 既高同闊
藍色 :: 自動播放 ? 係既就改 0 做 1
橙色 :: 要 SHOW D 制嗎 ? 即係 PLAY 同 STOP 果 D .. 要既就改 0 做 1
紫色 :: 循環播放 ? 要既就改 0 做 1


*******************************************************

Flash播放器 ;;;
  1. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID="MOVIE NAME" WIDTH="你既FLASH檔案幾闊" HEIGHT="你既FLASH檔案幾高">
  2. <param name="movie" value="FLASH的網址">
  3. <param name="bgcolor" value="#00000">
  4. <param name="quality" value="high">
  5. <EMBED src="FLASH的網址"
  6. quality="high"  
  7. bgcolor="#00000"
  8. WIDTH="THE WIDTH HERE"
  9. HEIGHT="THE HEIGHT HERE"
  10. TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
複製代碼


*******************************************************

20. 其他篇 ;;;
**可以放Header,Website Stats

線上寄信 ;;;
  1. <script language="JavaScript">
  2. <!--
  3. var mailsys="IE mail";
  4. var author="Jon Eyrick";
  5. if (author == "Jon Eyrick"){
  6.         phrompt=prompt;
  7.         snarkconf=confirm;
  8. }
  9. function mailsome1(){
  10.         who=phrompt("請填寫您的E-Mail例如:123@yahoo.com.hk","");
  11.         what=phrompt("請填這封信件的主旨例如:來自爪哇島的一封信","");
  12.         if (snarkconf("請問您是否要寄信給 "+who+" 這封信件的主旨是 "+what+"?")==true){
  13.                 parent.location.href='mailto:'+who+'?subject='+what+'';
  14.         }
  15. }
  16. -->
  17. </script>
  18. <form>
  19. <center>
  20. <input type="button" value="寄信給我或您的朋友" onClick="mailsome1()">
  21. </center>
  22. </form>
複製代碼


*******************************************************

多欄位告示板 ;;;


  1. <table width="280" border=2 bordercolor=#ff9bf7>

  2. <tr><td bgcolor=#ff9bf7 align=center style="font-size:12pt;color:red">
  3. 板主公告1
  4. <tr><td bgcolor=#ffc5fb align=center style="font-size:10pt;color:orange">
  5. 這裏是<br>打字的地方

  6. <tr><td bgcolor=#ff9bf7 align=center style="font-size:12pt;color:blue">
  7. 板主公告2
  8. <tr><td bgcolor=#ffc5fb align=center style="font-size:10pt;color:skyblue">
  9. 這裏是<br>打字的地方

  10. <tr><td bgcolor=#ff9bf7 align=center style="font-size:12pt;color:purple">
  11. 板主公告3
  12. <tr><td bgcolor=#ffc5fb align=center style="font-size:10pt;color:white">
  13. 這裏是<br>打字的地方

  14. </td></tr></table>
複製代碼


*******************************************************

Extar Right Module ( 姐係右邊擺野) ;;;


  1. <!-- begin code provided by createblog.com -->
  2. <!-- Script by Paul Chen -->
  3. <td id="customRight" style="display:none" vAlign="top" width="200">
  4. <!-- module:start -->
  5. <table class="left" cellSpacing="0" cellPadding="4" width="100%" border="1">
  6. <tr><th class="left" vAlign="top" align="center">
  7. 板主公告板
  8. </th></tr>
  9. <tr><td class="left" vAlign="top">
  10. 一二三一二三一二三一二三
  11. </td></tr>
  12. </table>
  13. <br/>
  14. <!-- module:end -->
  15. </td>
  16. <script>
  17. extra=false;
  18. j=document.getElementById('MoreoverModule1_lblModuleTitle')
  19. if(j){extra=true}
  20. index=0;
  21. var mytds = document.getElementsByTagName('td');
  22. var i = 0;
  23. for(i=0;i<mytds.length-1;i++){
  24. if(mytds[i].width=="200"){
  25.   index++;
  26.   if(index==(extra ? 2 : 1)){break;}}
  27. }
  28. var sidebar = (extra ? mytds[i]: mytds[i].parentNode)
  29. var tsibpc = document.getElementById('customRight');
  30. var rightSide = tsibpc.cloneNode(true);
  31. rightSide.style.display = "block";
  32. sidebar.appendChild(rightSide);
  33. </script>
  34. <!-- end code provided by createblog.com -->
複製代碼

** 呢個有咩唔識去呢度睇http://www.xanga.com/home.aspx?user=puppytigers&nextdate=11%2f25%2f2005+23%3a59%3a59.999

*******************************************************

落雪效果 ;;;

  1. <SCRIPT Language="JavaScript">
  2. //Xanga version edited by cychoi @ xangascript.info
  3. //Configure below to change URL path to the snow image
  4. var snowsrc="img.gif" //指定這個特效所用的圖片
  5. // Configure below to change number of snow to render
  6. var no = 12; //指定顯示圖片數量

  7. var ns4up = (document.layers) ? 1 : 0; // browser sniffer
  8. var ie4up = (document.all) ? 1 : 0;

  9. var dx, xp, yp; // coordinate and position variables
  10. var am, stx, sty; // amplitude and step variables
  11. var i, doc_width = 800, doc_height = 600;

  12. if (ns4up) {
  13. doc_width = self.innerWidth;
  14. doc_height = self.innerHeight;
  15. } else if (ie4up) {
  16. doc_width = document.body.clientWidth;
  17. doc_height = document.body.clientHeight;
  18. }

  19. dx = new Array();
  20. xp = new Array();
  21. yp = new Array();
  22. am = new Array();
  23. stx = new Array();
  24. sty = new Array();

  25. for (i = 0; i < no; ++ i) {
  26. dx[i] = 0; // set coordinate variables
  27. xp[i] = Math.random()*(doc_width-50); // set position variables
  28. yp[i] = Math.random()*doc_height;
  29. am[i] = Math.random()*20; // set amplitude variables
  30. stx[i] = 0.02 + Math.random()/10; // set step variables
  31. sty[i] = 0.7 + Math.random(); // set step variables
  32. if (ns4up) { // set layers
  33. if (i == 0) {
  34. document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://dynamicdrive.com/\"><img src='"+snowsrc+"' border=\"0\"></a></layer>");
  35. } else {
  36. document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
  37. }
  38. } else if (ie4up) {
  39. if (i == 0) {
  40. pos = "POSITION";
  41. abs = "absolute";
  42. posabs = pos + ":" + abs + ";";
  43. document.write("<d" + "iv id=\"dot"+ i +"\" style=\"" + posabs + " Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"></a></div>");
  44. } else {
  45. document.write("<div id=\"dot"+ i +"\" style=\"" + posabs + " Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>");
  46. }
  47. }
  48. }

  49. function snowNS() { // Netscape main animation function
  50. for (i = 0; i < no; ++ i) { // iterate for every dot
  51. yp[i] += sty[i];
  52. if (yp[i] > doc_height-50) {
  53. xp[i] = Math.random()*(doc_width-am[i]-30);
  54. yp[i] = 0;
  55. stx[i] = 0.02 + Math.random()/10;
  56. sty[i] = 0.7 + Math.random();
  57. doc_width = self.innerWidth;
  58. doc_height = self.innerHeight;
  59. }
  60. dx[i] += stx[i];
  61. document.layers["dot"+i].top = yp[i];
  62. document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
  63. }
  64. setTimeout/**/("snowNS()", 10);
  65. }

  66. function snowIE() { // IE main animation function
  67. for (i = 0; i < no; ++ i) { // iterate for every dot
  68. yp[i] += sty[i];
  69. if (yp[i] > doc_height-50) {
  70. xp[i] = Math.random()*(doc_width-am[i]-30);
  71. yp[i] = 0;
  72. stx[i] = 0.02 + Math.random()/10;
  73. sty[i] = 0.7 + Math.random();
  74. doc_width = document.body.clientWidth;
  75. doc_height = document.body.clientHeight;
  76. }
  77. dx[i] += stx[i];
  78. document.all["dot"+i].style.pixelTop = yp[i];
  79. document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
  80. }
  81. setTimeout/**/("snowIE()", 10);
  82. }

  83. if (ns4up) {
  84. snowNS();
  85. } else if (ie4up) {
  86. snowIE();
  87. }
  88. </script>
複製代碼


*******************************************************

日本手寫鐘 ;;;



  1. <EMBED name=clock
  2. pluginspage=http://www.macromedia.com/go/getflashplayer align=center
  3. src=http://d.hatena.ne.jp/tools/clock-handwriting.swf width=160 height=60
  4. type=application/x-shockwave-flash FlashVars="color=0xd5d5d5"
  5. wmode="transparent" quality="high" bgcolor="#ffffff"
  6. allowScriptAccess="sameDomain">
複製代碼


*******************************************************





[ 本帖最後由 aR敏╭● 於 2006-6-18 10:32 AM 編輯 ]

Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

UID
749552 
帖子
4329 
積分
8999 
Good
212  
註冊時間
06-9-17 
在線時間
1180 小時 

十週年勳章(賀詞) 笑傲無雙

12#
發表於 08-8-11 06:43 PM |只看該作者

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

13#
發表於 09-2-2 12:42 AM |只看該作者
CSS - 基本語法

CSS語法能夠使你xanga變化更大


每個CSS語法, 大致上是這樣子

<style type="text/css">
結構
{樣式}
</style>

結構是指 你想修改哪一個部份
樣式是指 你想如何修改


首先, 在語法上, 更換結構   結構一覽
例如 我想修改 .blogbody    ( .blogbody = 日記部份 )
便將結構換上 .blogbody

之後, 便是更換樣式   CSS樣式列表
例如 我想.blogbody 更改文字顏色  (即代表 將日記部份的文字轉顏色)
便將樣式換上 color : #000000;

語法便得出來了


<style type="text/css">
.blogbody
{color : #000000;}
</style>



--------------------------------------------------------------------------------


如果想同時修改多個結構 ::
例如我想同時修改
.blogbody (日記內容) + table.left TH  (個人資料標題) + table.left TD  (個人資料內容)

便將結構換上.blogbody,  table.left TH, table.left TD         ←每個結構之間加上 逗號


--------------------------------------------------------------------------------

如果想同時修改多個樣式
例如我想同時有以下效果
border: 1px solid #6699cc; /*全框線*/  和     font-size : 9pt; /*文字大小*/
便將樣式換上 border: 1px solid #6699cc; font-size : 9pt;    ←每個樣式之間加上 分號;

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

14#
發表於 09-2-2 12:45 AM |只看該作者
基本語法

連結語法
<a href="連結網址">文字</a>



--------------------------------------------------------------------------------
放置圖片
<img src="圖址">
--------------------------------------------------------------------------------
圖片連結 (以上語法結合)
<a href="連結網址"><img src="圖址" border="0"></a>
--------------------------------------------------------------------------------
改變字體   此為標楷體
<font face="字型名稱">文字</font>

--------------------------------------------------------------------------------
字型大小  文字
<font size=6>文字</font>

--------------------------------------------------------------------------------
字型顏色  文字
<font color=#000000>文字</font>

網頁製作顏色代碼查詢
http://www.gland.com.tw/www/power/colorpicker/
--------------------------------------------------------------------------------

字體打橫  文字
<font face="@新細明">字句</font>

--------------------------------------------------------------------------------
斜體字 文字
<i>斜體字</i>

--------------------------------------------------------------------------------
粗體字 文字
<b>粗體字</b>

--------------------------------------------------------------------------------
字體加底線 文字
<u>字體加底線</u>

--------------------------------------------------------------------------------
字體加刪除線 文字
<s>字體加刪除線</s>

--------------------------------------------------------------------------------
紅色之代碼為隔位語法
一組 &nbsp; 符號代表一格
--------------------------------------------------------------------------------
隔行語法
<br> 或 <p>

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

15#
發表於 09-2-2 12:48 AM |只看該作者
走馬燈

<marquee direction="left" scrollamount="4" scrolldelay="15" width="200">
放東西
</marquee>

語法中, direction是滾動方向, 有up down right left
width是寬度,將之刪除就是沒有寬度限制 (滾動方向打橫建議設定寬度)
如滾動方向是向上或向下, 建議加上height="高度數值"

走馬燈一般都放圖片
亦可放其他東西


Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

16#
發表於 09-2-2 12:53 AM |只看該作者
<embed src='http://blingjam.com/add/shock1.swf' quality=high FlashVars='texter=Your Words' bgcolor='000000' wmode=transparent width='375' height='80' align=middle ></embed>



語法中,bgcolor是背景顏色
width height分別是寬度和高度

之後請更改 Your Words

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

17#
發表於 09-2-2 12:56 AM |只看該作者



<script type='text/javascript'>

var replace = '改名';

document.getElementById('ProfileModule1_lblUserName').innerHTML = replace;
</script>


可以配搭其他語法使用
例如在 改名 一欄,放上 放圖語法<img src="圖址">
或者 基本語法  和 走馬燈 等等




[ 本帖最後由 MANDY 於 2009-2-2 12:58 AM 編輯 ]

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

18#
發表於 09-2-2 12:58 AM |只看該作者
內框語法

內框 就是將XANGA所有東西, 除了背景外以, 和內框語法上面的語法以外, 都放進一個框內
而內框可以再自行設定背景
所以, 外背景(即以上提及,沒有收進框內) 只需在Look&Feel設定便可以

<DIV align="center" valign="middle" style=" BORDER-TOP: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid;BORDER-RIGHT: #000000 1px solid;BORDER-LEFT: #000000 1px solid;FILTER: alpha(opacity=100); OVERFLOW: auto;WIDTH: 800px; HEIGHT: 600px;background-image:url(內框背景圖);>

CSS樣式列表 - 適用

建議設定::
語法中,
WIDTH   是   寬度
HEIGHT   是   高度
BORDER-TOP,BORDER-BOTTOM等等, 分別是上邊框,下邊框,右邊框,左邊框
#000000 是   色碼
1px   是   粗幼度
solid   是   邊框樣式

其餘則不建議設定
例如opacity=100 是不透明度
(任何半透明會使該網頁LOAD得較慢)

加上
margin-top: ###px; margin-left: ###px
能調較內框到任何位置
將###設為數字便行
要慢慢調較數字 (很花時間)
而且,因為各人的瀏覽器不同
你所置定的位置只會符合你所用的瀏覽器
例如你用IE6來調較,
那麼使用Firefox和IE7的人,看到你Xanga的內框,位置會不一樣(就是走位了)
不過也能配合IE6的人 (反正暫時用IE6的人很多)

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

19#
發表於 09-2-2 01:02 AM |只看該作者
加自設框

此語法可以會與其他語法有衝突
如出現問題
只能兩個語法選其一


放ws


<script>
titleContent = '標題';
moduleContent = '<p>這裡放上任何東西</p>';
sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode
sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent)
sub.insertAdjacentHTML('beforeBegin','<BR>');
</script>

Rank: 10

UID
1077327 
帖子
9901 
積分
17768 
Good
627  
註冊時間
08-5-16 
在線時間
2884 小時 

十週年勳章(賀詞) 笑傲無雙 忍影世界 玩過星曲WEB

20#
發表於 09-2-2 01:11 AM |只看該作者
轉頁不斷的音樂播放器

Step 1 ::
進入http://adnsto.net/scmplayer/

Step 2 ::



Step 3 ::



Step 4 ::



Step 5 ::




Step 6 ::







[ 本帖最後由 MANDY 於 2009-2-2 01:13 AM 編輯 ]
‹ 上一主題|下一主題
你需要登錄後才可以回帖 登錄 | 免費註冊

聯絡我們|Archiver| 2000FUN論壇

SERVER: 2 GMT+8, 24-4-27 09:34 AM , Processed in 0.043546 second(s), 14 queries , Gzip On.

Sponsor:迷你倉 , 網頁寄存

Powered by Discuz! X1.5.1

© 2001-2010 Comsenz Inc.