YK Forum » Blog » XG語法大總匯*v*


2009-10-13 09:28 PM arwg
XG語法大總匯*v*

[color=Red]1.音樂盒[/color]
[color=Green]<object id="darkplayer" codeBase="http://activex.microsoft.com/act ... p2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object>
<form name="form">
<p align="right">
<font face="Verdana">
<select style="font-size: 8pt; background-color: bg[color=Red]顏色[/color]; background-repeat: repeat; background-attachment: scroll; width: 195; color: [color=Red]字顏色[/color]; font-face: verdana; height: 23; background-position: 0%" name="playlist" size="1">
<option value="0">[color=Red]歌名1[/color]</option>
<option value="1">[color=Red]歌名2[/color]</option>
<option value="2">[color=Red]歌名3[/color]</option>
<option value="3">[color=Red]歌名4[/color]</option>
<option value="4">[color=Red]歌名5[/color]</option>
<option value="5">[color=Red]歌名6[/color]</option>

</select><p align="[color=Red]按鈕位置e.g.right[/color]"><input style="BORDER-RIGHT: #F7C7DF 3px double; BORDER-TOP: #F7C7DF 3px double; FONT-SIZE: 8pt; BORDER-LEFT: #F7C7DF 3px double; COLOR: #FF0080; BORDER-BOTTOM: #F7C7DF 3px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"  type=button value=Play name=darkplay>

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

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

<script language="JavaScript">
<!--
var playstate = 1;
shuffle = // set to 0 to always play first song in list
             // set to 1 to randomly choose the first song to play
  // unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="[color=Red]歌1既網址[/color]"
songs[1]="[color=Red]歌2既網址[/color]"
songs[2]="[color=Red]歌3既網址[/color]"
songs[3]="[color=Red]歌4既網址[/color]"
songs[4]="[color=Red]歌5既網址[/color]"
songs[5]="[color=Red]歌6既網址[/color]"

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms[&#39;form&#39;].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
} //--></script>[/color]
_______________________________________________

[color=Red]2.框框入面既走馬燈[/color]
[color=Green]<table>
<TR>
<td>
<fieldset>
<marquee direction="left" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>[color=Red]你想打既字[/color]</font>
</marquee>
</fieldset>
</td>
<td>
<fieldset>
<marquee direction="down" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>[color=Red]你想打既字[/color]</font>
</marquee>
</fieldset>
</td>
<td>
<fieldset>
<marquee direction="right" height=35 width=50 scrollamount="2"><font
color=#000000
family="georgia" size=3>[color=Red]你想打既字[/color]</font>
</marquee>
</fieldset>
</td>
</tr></table>[/color]
________________________________________

[color=RoyalBlue]3.更改游標
<STYLE>BODY {
       CURSOR: url(&#39;游標網址&#39;);
}
A {
       CURSOR: url(&#39;游標網址&#39;);
}
</STYLE>

__________________________________________

4.張日期D字整大隻D
<style type="text/css">
div.blogheader, .caption {
/* EDIT THE DATES */
font-family : &#39;字形&#39; ;
font-size : 字ge大小;
text-align: 置中/左/右;
}
</style>
____________________________________________

5.張圖片由淡化變清晰
<img src="圖片網址" border="0"   style="filter: alpha(opacity=50)">

_____________________________________________
6.可以張profile整寬d
<style type="text/css">
table.left { border: 粗px dashed #色; width:你想要既闊px}
</style>

_______________________________________________

7.係圖加有框+透明
<style type="text/css">
table.blogbody {
background-color: #顏色;
style;border:闊度px double; border-color:#顏色;
filter:Alpha(opacity=50);
}
</style>
_______________________________________________-
8.成版乜都透明
<STYLE>
table{filter:Alpha(Opacity=60)}
</STYLE>
______________________________________

9.鎖右鍵和鍵盤
<SCRIPT language=JavaScript>
<!-- begin
document.onmousedown=click;
document.onkeydown=click;
if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=click;
if (document.layers) window.captureEvents(Event.KEYDOWN); window.onkeydown=click;
function click(e){
if (navigator.appName == &#39;Netscape&#39;){
if (e.which != 1){
alert("是不是連鍵盤都無法使用啦?");
return false;}}
if (navigator.appName == "Microsoft Internet Explorer"){
if (event.button != 1){
alert("是不是連鍵盤都無法使用啦?");
return false;}}}
// end -->
</SCRIPT>
__________________________________________
10.日期變中文
<!-- begin code provided by createblog.com -->

<script type="text/javascript">
//
// ?003 EasterEgg, [url]http://www.xanga.com/easteregg[/url]
// Changes date text
// For use at Xanga only.
//
// Info at [url]http://dorkette.net[/url]
//

function replaceWordsDates()
{
   // ***add the Months or Days you wish to replace below
   var oldWordsDates = new Array(
       "January",
       "February",
       "March",
       "April",
       "May",
       "June",
       "July",
       "August",
       "September",
       "October",
       "November",
       "December",
       "Monday,",
       "Tuesday,",
       "Wednesday,",
       "Thursday,",
       "Friday,",
       "Saturday,",
       "Sunday,",
       "2002",
       "2003",
       "2004",
       "2005",
       "2006",
       "2007",
       "2008",
       "01, ",
       "02, ",
       "03, ",
       "04, ",
       "05, ",
       "06, ",
       "07, ",
       "08, ",
       "09, ",
       "10, ",
       "11, ",
       "12, ",
       "13, ",
       "14, ",
       "15, ",
       "16, ",
       "17, ",
       "18, ",
       "19, ",
       "20, ",
       "21, ",
       "22, ",
       "23, ",
       "24, ",
       "25, ",
       "26, ",
       "27, ",
       "28, ",
       "29, ",
       "30, ",
       "31, "
       );

   // *** add the replacing Months or Days below
   var newWordsDates = new Array(
       "x JANUARY",
       "x FEBRUARY",
       "x MARCH",
       "x APRIL",
       "x MAY",
       "x 6",
       "x JULY",
       "x AUGUST",
       "x SEPTEMBER",
       "x OCTOBER",
       "x NOVEMBER",
       "x DECEMBER",
       "_MONDAY ",
       "_TUESDAY ",
       "_WEDNESDAY ",
       "_THURSDAY ",
       "_FRIDAY ",
       "_SATURDAY ",
       "_SUNDAY ",
       " 2002",
       " 2003",
       " 2004",
       " 2005",
       " 2006",
       " 2007",
       " 2008",
       "o1, ",
       "o2, ",
       "o3, ",
       "o4, ",
       "o5, ",
       "o6, ",
       "o7, ",
       "o8, ",
       "o9, ",
       "1o, ",
       "11, ",
       "12, ",
       "13, ",
       "14, ",
       "15, ",
       "16, ",
       "17, ",
       "18, ",
       "19, ",
       "2o, ",
       "21, ",
       "22, ",
       "23, ",
       "24, ",
       "25, ",
       "26, ",
       "27, ",
       "28, ",
       "29, ",
       "3o, ",
       "31, "

       );

   allDivData = document.getElementsByTagName(&#39;div&#39;);
      
   var collections = new Array(allDivData);
   
   for (var k = 0; k < collections.length; ++k )
   {
       for (var i = 0; i < collections[k].length; ++i )
       {   
           if (collections[k].innerHTML.indexOf(&#39;DIV&#39;) == -1)
           {
               for ( var n = 0; n < oldWordsDates.length; ++n )
               {
                   var indx = collections[k].innerHTML.indexOf(oldWordsDates[n])
                   while (indx != -1)
                   {   
                       var replacement = &#39;&#39;;
                       indx = collections[k].innerHTML.indexOf(oldWordsDates[n]);
                       replacement = collections[k].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);
                       collections[k].innerHTML = replacement;
                       break;                    
                   }
               }
           }
       }
   }
}
replaceWordsDates();
</script>
<!-- end code provided by createblog.com -->[/color]

頁: [1]
查看完整版本: XG語法大總匯*v*


Powered by Discuz! Archiver 5.0.0  © 2001-2006 Comsenz Inc.