AGAMES 討論區

 找回密碼
 快速註冊
搜索
查看: 4839|回復: 0
打印 上一主題 下一主題

xanga語法 [複製鏈接]

七級帝王會員

☆Prince★}+}|電腦王子

Rank: 7Rank: 7Rank: 7

帖子
3799
EXP
6040 點
金幣
4990 個
好友
0
註冊時間
2008-3-27

友誼之星勳章

跳轉到指定樓層
樓主
發表於 2008-10-29 21:52:36 |只看該作者 |倒序瀏覽
Chp.1
1.設定顯示日記篇數
2.日期變中文
3. 改標題
4.1 改XANGA字(1)
4.2 改XANGA字(2)
5. 整走Posting Calender
6. Mouse右鍵無效, highlight無效
7. 將xanga profile 左轉右面
8. 唔要廣告
9. 唔要左手面個人資料框
10. 整個板面透明
11. 個人資料框透明
12. 日記透明
13. 整文字跑馬燈
14. 張圖片由淡化變清晰
15. 用 mouse 指住 link 時變色
16. 將日記內容另加背景
17. 加個player
18. 改email為圖
19. 定時轉背景
chp.2:(#14)
20. 個人資料+背景
21. 整個MUSIC BOX
22. 去除Posting Calendar
23. xanga+外框
24. 隨機背景圖
25.1. 立體框(1)
25.2. 立體框(2)(四條邊的顏色一樣,但粗幼不一樣)
26. 進入時彈出視窗
27. 離開時彈出視窗
28. 每篇日記加框
29. 更改游標
30.mouse指連結時模糊
31.1 一入xanga既時候震動視窗(雙向)
31.2 一入xanga既時候震動視窗(直向)
31.3 一入xanga既時候震動視窗(橫向)
32. 唔要個日記想
33. 收窄個人資料個框
34. 框住日期的框
chp.3(p.3)
35.1 圖片移動1
35.2 圖片移動2
35.3 圖片移動3
35.4 圖片移動4
36. 圖片移動(Mouse掂到張圖時會Hold住)
37.背景圖淡化
38.改Friend List朋友名
39.改Next 5 個字
40.指標改做十字線
41.右鍵變我的最愛網頁
42.改哂Xanga入面既所有字
43.勁震板面
44.remove eprops功能
45.整到個xanga好係shut down左咁
46.整去左邊profile
47.整走上高個navigation
48.移除NEXT 5同PREVIOUS 5
49.按右鍵會彈出警告
第四回(新帖子)
------------------------------------------------------------------------------------------------------------------

記住要改紅色字

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

1.設定顯示日記篇數

  1. <script>
  2. numberOfEntries = 3; //Change this value here...
  3. if(location.pathname=='/ID'){
  4. var tds = document.getElementsByTagName ('a');
  5. for (var i = 0; i < tds.length; i++) {
  6. timeString = tds.innerText;
  7. if(timeString.match(/\d+:\d+ [ap]m\b/i)){break;}
  8. }
  9. stuff = tds.parentNode.parentNode.parentNode.parentNode.parentNode;
  10. for(j=1;j<numberOfEntries;j++){
  11. stuff=stuff.nextSibling.nextSibling.nextSibling
  12. if(stuff.tagName=='BR'){
  13. stuff=stuff.previousSibling;
  14. }
  15. }
  16. for(i=0;i<20;i++){
  17. if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE')
  18. {
  19. stuff.nextSibling.removeNode(true);
  20. break;
  21. }
  22. stuff = stuff.nextSibling;
  23. stuff.style.display='none';
  24. }}
  25. </script>
複製代碼

放係websites stat

------------------------------------------------------------------------------------------------
2.日期變中文

  1. <script type="text/javascript">
  2. //
  3. // ?003 EasterEgg, http://www.></easteregg
  4. // Changes date text
  5. // For use at Xanga only.
  6. //
  7. // Info at http://dorkette.net
  8. //

  9. function replaceWordsDates()
  10. {
  11.     // ***add the Months or Days you wish to replace below
  12.     var oldWordsDates = new Array(
  13.         "January",
  14.         "February",
  15.         "March",
  16.         "April",
  17.         "May",
  18.         "June",
  19.         "July",
  20.         "August",
  21.         "September",
  22.         "October",
  23.         "November",
  24.         "December",
  25.         "Monday,",
  26.         "Tuesday,",
  27.         "Wednesday,",
  28.         "Thursday,",
  29.         "Friday,",
  30.         "Saturday,",
  31.         "Sunday,",
  32.         "2002",
  33.         "2003",
  34.         "2004",
  35.         "2005",
  36.         "2006",
  37.         "2007",
  38.         "2008",
  39.         "01, ",
  40.         "02, ",
  41.         "03, ",
  42.         "04, ",
  43.         "05, ",
  44.         "06, ",
  45.         "07, ",
  46.         "08, ",
  47.         "09, ",
  48.         "10, ",
  49.         "11, ",
  50.         "12, ",
  51.         "13, ",
  52.         "14, ",
  53.         "15, ",
  54.         "16, ",
  55.         "17, ",
  56.         "18, ",
  57.         "19, ",
  58.         "20, ",
  59.         "21, ",
  60.         "22, ",
  61.         "23, ",
  62.         "24, ",
  63.         "25, ",
  64.         "26, ",
  65.         "27, ",
  66.         "28, ",
  67.         "29, ",
  68.         "30, ",
  69.         "31, "
  70.         );

  71.     // *** 改"      "入面D
  72.     var newWordsDates = new Array(
  73.         "JANUARY",
  74.         "FEBRUARY",
  75.         "MARCH",
  76.         "APRIL",
  77.         "MAY",
  78.         "June",
  79.         "JULY",
  80.         "AUGUST",
  81.         "SEPTEMBER",
  82.         "OCTOBER",
  83.         "NOVEMBER",
  84.         "DECEMBER",
  85.         "MONDAY ",
  86.         "TUESDAY ",
  87.         "WEDNESDAY ",
  88.         "THURSDAY ",
  89.         "FRIDAY ",
  90.         "SATURDAY ",
  91.         "SUNDAY ",
  92.         " 2002",
  93.         " 2003",
  94.         " 2004",
  95.         " 2005",
  96.         " 2006",
  97.         " 2007",
  98.         " 2008",
  99.         "o1, ",
  100.         "o2, ",
  101.         "o3, ",
  102.         "o4, ",
  103.         "o5, ",
  104.         "o6, ",
  105.         "o7, ",
  106.         "o8, ",
  107.         "o9, ",
  108.         "1o, ",
  109.         "11, ",
  110.         "12, ",
  111.         "13, ",
  112.         "14, ",
  113.         "15, ",
  114.         "16, ",
  115.         "17, ",
  116.         "18, ",
  117.         "19, ",
  118.         "2o, ",
  119.         "21, ",
  120.         "22, ",
  121.         "23, ",
  122.         "24, ",
  123.         "25, ",
  124.         "26, ",
  125.         "27, ",
  126.         "28, ",
  127.         "29, ",
  128.         "3o, ",
  129.         "31, "

  130.         );

  131.     allDivData = document.getElementsByTagName('div');
  132.         
  133.     var collections = new Array(allDivData);
  134.    
  135.     for (var k = 0; k < collections.length; ++k )
  136.     {
  137.         for (var i = 0; i < collections[k].length; ++i )
  138.         {   
  139.             if (collections[k].innerHTML.indexOf('DIV') == -1)
  140.             {
  141.                 for ( var n = 0; n < oldWordsDates.length; ++n )
  142.                 {
  143.                     var indx = collections[k].innerHTML.indexOf(oldWordsDates[n])
  144.                     while (indx != -1)
  145.                     {   
  146.                         var replacement = '';
  147.                         indx = collections[k].innerHTML.indexOf(oldWordsDates[n]);
  148.                         replacement = collections[k].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);
  149.                         collections[k].innerHTML = replacement;
  150.                         break;                    
  151.                     }
  152.                 }
  153.             }
  154.         }
  155.     }
  156. }
  157. replaceWordsDates();
  158. </script>
複製代碼

放係websites stat

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

3.改標題

  1. <script language=javascript>
  2. document.title=("標題")
  3. </script>
複製代碼

放係Input your own Header HTML

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

4.1改XANGA字(1)

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

放係website stats

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

4.2改XANGA字(2)

  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 ><",
  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 ><",
  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 http://help.></codes.htm
  69. }
  70. break;
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. replaceWords();
  78. //
  79. </script>
複製代碼

放係website stats

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

5.整走 Posting Calender modules

  1. <script language="javascript">
  2. if (location.href.match ("user id")) {
  3. var ht = document.getElementsByTagName ('table');
  4. for (var t = 0; t < 10; t++) {str = ht[t].cells[0].innerHTML;
  5. if (!str.match (/user id/i) && str.match (/(Posting Calendar|Get Involved!|Build Traffic!)/i)) ht[t].style.display = "none";}}
  6. </script>
複製代碼

放係website stats

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

6.mouse右鍵無效,highlight無效

  1. <body   >
複製代碼

放在 input your own header html

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

7.將xanga profile 左轉右面

  1. <script language="Javascript">
  2. // original by sean http://www.></seanmeister
  3. var tds = document.getElementsByTagName("td");
  4. for (var i = 0; i < tds.length; i++){
  5. if (tds.width == "200"){
  6. tds.parentNode.appendChild(tds.cloneNode(true));
  7. tds.parentNode.removeChild(tds);
  8. break;
  9. }}
  10. </script>
複製代碼

放在websites stat

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

8.唔要廣告

  1. <!--AdRemover-->
  2. <!--Screennaimless code created by Anti_fukin_social-->
  3. <!--http://www.></anti_fukin_social--></table></td></tr></tr></td></table>
  4. <ilayer name=""><div id="" style="width:1; height:1; BACKGROUND: #; FILTER: alpha(opacity=0); overflow:auto">
  5. <ilayer name=""><div id="" style="width:1; height:1; BACKGROUND: #; FILTER: alpha(opacity=0); overflow:auto">
  6. <!--Finished-->
  7. <!--End Of AdRemover-->
複製代碼

放係website stats度,最底。

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

9.唔要左手面個人資料框

  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>
複製代碼

放website stats
請記得要加番一d超連結,唔係無左左手面GE框係改唔到LOOK & FEEL內GE野。
加超連結例子:
<a href="網址">look & feel</a>

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

10.整個板面透明

  1. <STYLE>
  2. table{filter:Alpha(Opacity=50)}
  3. </STYLE>
複製代碼

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

11.個人資料框透明

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

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

12.日記透明

  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>
複製代碼

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

13.整文字跑馬燈

  1. <marquee direction=right><font size=4 color=blue>你打ge字</font></marquee>
複製代碼

可改為向右 <marquee behavior=Right>
或左右左右  <marquee behavior=alternate>

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

14.張圖片由淡化變清晰

  1. <img src="圖片網址" border="0"   style="filter: alpha(opacity=50)">
複製代碼

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

15.用 mouse 指住 link 時變色

  1. <style type="text/css">
  2. a:hover {
  3. /* edits when user mouseovers the links */
  4. color:#00AA00;
  5. font:normal 11px Papyrus;
  6. line-height:12px;
  7. text-decoration:underline;
  8. border-bottom: 10px dotted #000000;
  9. height: 5px;
  10. text-transform:uppercase;
  11. letter-spacing:1px;
  12. }
  13. </STYLE>
複製代碼

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

16.將日記內容另加背景

  1. <style type="text/css">
  2. <!--
  3. .blogbody {background:url('網址') repeat-y fixed ;
  4. }
  5. -->
  6. </style>
複製代碼

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

17.加個player

  1. <embed src="網址'" true? loop="false">
複製代碼

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

18.改email為圖

  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 (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "<img src=圖片網址 border='0'>");
  8. }//-->
  9. </script>
複製代碼

放係website stats

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

19.定時轉背景

  1. <SCRIPT Language="JavaScript">
  2. var backgroundimage=new Array("圖片網址","圖片網址","圖片網址","圖片網址");
  3. var swapspeed=10
  4. var timer
  5. var imgpreload=new Array()
  6. if (document.all) {
  7. for (i=0;i<=backgroundimage.length-1;i++) {
  8. imgpreload=new Image()
  9. imgpreload.src=backgroundimage
  10. }}var i_backgroundimage=0
  11. swapspeed=swapspeed*1000
  12. function swapimages() {if (document.all) {
  13. window.status=i_backgroundimage
  14. document.body.background=backgroundimage[i_backgroundimage]
  15. i_backgroundimage++
  16. if (i_backgroundimage>=backgroundimage.length) {i_backgroundimage=0}timer=setTimeout("swapimages()",swapspeed)
  17. }}window.onload=swapimages
  18. </SCRIPT>
複製代碼

-----------------------------------------------------------------------------------------------------
Alta Multimedia - Youtube:http://www.youtube.com/user/altahk
您需要登錄後才可以回帖 登錄 | 快速註冊

Archiver|手機版|AGAMES 討論區

GMT+8, 2024-12-9 17:51 , Processed in 0.047778 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回頂部