xG 語法 { 大什繪 }
目錄:::[u][b][color=#ff0000]一、圖片篇 [/color][/b][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102491][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102491[/color][/b][/url]
[u][color=#ff0000][b]二、滑鼠篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102492][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102492[/color][/b][/url]
[u][color=#ff0000][b]三、視窗篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102493][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102493[/color][/b][/url]
[u][color=#ff0000][b]四、版面篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102494][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102494[/color][/b][/url]
[u][color=#ff0000][b]五、連結篇[/b] [/color][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102495][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102495[/color][/b][/url][/u]
[u][color=#ff0000][b]六、subcription[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102496][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102496[/color][/b][/url]
[u][color=#ff0000][b]七、防盜篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102497][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102497[/color][/b][/url]
[u][color=#ff0000][b]八、移除廣告篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102498][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102498[/color][/b][/url]
[u][color=#ff0000][b]九、音樂篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102499][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102499[/color][/b][/url]
[u][color=#ff0000][b]十、文字篇 { 打新文章用 }[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102500][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102500[/color][/b][/url]
[u][color=#ff0000][b]十一、遊戲篇[/b] [/color][/u][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102501][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102501[/color][/b][/url]
[color=#ff0000][u][b]十二 、耍人篇[/b] [/u][/color][url=http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102502][b][color=pink]http://www.hkemax.com/viewthread.php?tid=28616&page=1&fromuid=20#pid102502[/color][/b][/url]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-26 18:38 編輯 [/i]] [b][u][color=#ff0000]一、圖片篇[/color][/u][/b]
[color=magenta]1 - 普通加圖[/color]
[code]<IMG SRC="圖片網子">[/code]
[color=magenta]2 - 圖片透明化[/color]
[code]<img style="FILTER: alpha(opacity=透明度)" onmouseout=makevisible(this,1) src="圖片網子">[/code]
[color=blue]-[/color][color=blue] 透明度是指你想圖片透明的程度 { 1-100 }[/color]
[color=magenta]3 - 圖片變黑白 { MOUSE 指著時變回彩色 }[/color]
[code]<img src="圖片網子" style="filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" >[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 04:37 編輯 [/i]] [b][u][color=red]二、滑鼠篇[/color][/u][/b]
[color=magenta]1 - 改cursor { 有圖link } [/color]
[code]<STYLE TYPE="text/css">
BODY{cursor: url(圖片網子);}
a {cursor: url(圖片網子);}
</STYLE>[/code]
[color=blue]- 圖片格式必為ani[/color]
[color=magenta]2 - 改cursor { 無圖link,用mouse名 }[/color]
[code]<STYLE>A {CURSOR:名; TEXT-DECORATION: 名}</STYLE>[/code]
e-resize (打橫箭咀)
n-resize (上下箭咀)
ne-resize (向右打斜箭咀)
nw-resize (向左打斜箭咀)
wait (漏豆)
move (十字箭咀)
crosshair (十字)
help (問號)
text (類似hight light時出現)
hand (手指)
[color=magenta]3 - 十字瞄準[/color]
[code]<div id="leftright" style="width:expression(document.body.clientWidth-2)">
</div>
<div id="topdown" style="height:expression(document.body.clientHeight-2)">
</div>
<script language="JavaScript1.2">
<!--
if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}
function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
//-->
</script>
<style>
<!--
#leftright, #topdown{
position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:#B0D0F8;
background-color:#FF6699; //修改十字線顏色
z-index:100;
font-size:1px;
}
-->
</style>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 04:39 編輯 [/i]] [color=red][u][b]三、視窗篇[/b][/u][/color]
[color=magenta]1 - 修改標題[/color]
[code]<script language=javascript>
document.title=("你想要的標題")
</script>[/code]
[color=magenta]2 - 進入時彈出視窗[/color]
[code]<script language="JavaScript">
<!--
alert("視窗上出現的字");
//-->
</script>[/code]
[color=magenta]3 - 離開時彈出視窗[/color]
[code]<script language="JavaScript">
function UserExit(){
alert("視窗上出現的字");
}</script>
<body >[/code]
[color=magenta]4 - 每次進入Xg都有不同的標題[/color]
[code]<script type= ext/javascript>
shuffle = 1; //Replace 1 with 0 if you want to temporarily turn off this script
//you can keep adding more titles by copying over, as long as you change the number
title=new Array();
title[0] = "標題1";
title[1] = "標題2";
title[2] = "標題3";
title[3] = "標題4";
title[4] = "標題5";
title[5] = "標題6";
title[6] = "標題7";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()*title.length);
document.title = title[randsg];
}
</script>[/code]
[color=magenta]5 - 工具列、狀態列走字:左右移動[/color]
[code]<script language="javascript">
var x = 0
var speed = 100
var text = "你想它出現的字句"
var course = 127
var text2 = text
function Scrollforward() {
window.status = text2.substring(0, text2.length)
if (course < text2.length) {
setTimeout("Scrollback()", speed)
}else {text2 = " " + text2
setTimeout("Scrollforward()", speed);
}}function Scrollback() {
window.status = text2.substring(x, text2.length)
if (text2.length - x == text.length) {text2 = text
x = 0
setTimeout("Scrollforward()", speed);}else {x++
setTimeout("Scrollback()", speed);}}Scrollforward()
</script>[/code]
[color=magenta]6 - 直向震動[/color]
[code]<script language = "JavaScript">
<!--
function shake( )
{
for (i = 10; i > 0; i--)
{
self.moveBy(0,i)
self.moveBy(0,-i)
}
}
shake( );
//-->
</script>[/code]
[color=magenta]7 - 小型地震[/color]
[code]<script>
function shake(n) {
if (self.moveBy){
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}} } }shake(5);</script>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 04:41 編輯 [/i]] [b][u][color=red]四、版面篇[/color][/u][/b]
[color=magenta]1 - 日記透明[/color]
[code]<style>table.blogbody{
background-color: FFFFFF;
FILTER: alpha(opacity=透明度);
family-font: trebuchet ms;
border: 3px double #FFFFFF;
width:460px;}
</style>[/code]
[color=blue]- 透明度︰1是最透明,100就是不透明[/color]
[color=magenta]2 - 整個版面都變相反[/color]
[code]<body dir="rtl"><DIV DIR="LTR">[/code]
[color=magenta]3 - 版面模糊[/color]
[code]<style>
body{filter:Blur(Direction=方向,Strength=強度)}
</style>[/code]
[color=blue]- 方向是角度,多用45,強度為1-5。[/color]
[color=magenta]4 - xg變黑白色[/color]
[code]<style>
body{filter:gray}
</style>[/code]
[color=magenta]5 - 捲軸顏色[/color]
[code]<style>
BODY {
SCROLLBAR-FACE-COLOR: #色碼;
SCROLLBAR-HIGHLIGHT-COLOR: #色碼;
SCROLLBAR-SHADOW-COLOR: #色碼;
SCROLLBAR-3DLIGHT-COLOR: #色碼;
SCROLLBAR-ARROW-COLOR: #色碼;
SCROLLBAR-TRACK-COLOR: #色碼;
SCROLLBAR-DARKSHADOW-COLOR: #色碼;
}
</style>[/code]
[color=magenta]6 - 每篇日記都有背景[/color]
[code]<style type="text/css">
<!--
.blogbody {background:url('網子') repeat-y fixed ;
}
-->
</style>[/code]
[color=magenta]7 - xG的框子[/color]
[code]<DIV align="center" valign="middle" style="BORDER-IGHT: #色碼 多厚px solid; BORDER-TOP: #色碼 多厚px solid; FILTER: alpha(opacity=100); OVERFLOW: auto; BORDER-LEFT: #色碼 多厚px solid; WIDTH: 長px; BORDER-BOTTOM: #色碼 多厚px solid; HEIGHT: 闊px; BACKGROUND-COLOR:#色碼
"> [/code]
[color=blue]- 多厚的位子是指框的線有多厚。 1最薄。
- 以下是我的例子︰
<DIV align="center" valign="middle" style="BORDER-IGHT: #ADADAD 1px solid; BORDER-TOP: #ADADAD 1px solid; FILTER: alpha(opacity=100); OVERFLOW: auto; BORDER-LEFT: #ADADAD 1px solid; WIDTH: 500px; BORDER-BOTTOM: #ADADAD 1px solid; HEIGHT: 400px; BACKGROUND-COLOR:
"> [/color]
[color=magenta]8 - 日記內容透明[/color]
[code]<style type="text/css">
table.blogbody {
/* this edits the other the place where the blog is */filter:Alpha(opacity=60); }
</style>[/code]
[color=blue]- 程度的地方打上你想文字的透明程度,多為60[/color]
[color=magenta]9 - 把xG的所有東西都在右邊[/color]
[code]<div id="blog" style="position: static; margin-left: 450px; height: 100%; background: none; overflow:;"><table border="0"></div>[/code]
[color=blue]- margin-left後的數字是表示有多右,數字月大,便月右。[/color]
[color=magenta]10 - 訊息魔法公仔[/color]
[color=#ff00ff][/color]
[code]<object id=tsaiannie53441 classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F></object>
<script language="JavaScript">
<!--
var MerlinID;
var MerlinACS;
tsaiannie53441.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
Merlin = tsaiannie53441.Characters.Character(MerlinID);
在這裡設定動作與說話內客
function LoadLocalAgent(CharID, CharACS) {
LoadReq = tsaiannie53441.Characters.Load(CharID, CharACS);
return(true);
}
-->
</script>[/code]
[color=magenta]11 - 只info框半透明[/color]
[code]<style type="text/css">
table.left { FILTER: alpha(opacity=85); }
</style>[/code]
[color=magenta]12 -[/color][color=magenta] 日期漸變色[/color]
[code]<style type="text/css">
div.blogheader, .caption {
font-family: Arial Black;
text-transform:uppercase;
font-size:20px;
line-height:30px;
font-weight:normal;
filter: alpha (opacity=100, finishopacity=10, style=2);
height: 1px;
background-color:#transparent;
color:#color;
letter-spacing:1px;
text-align: center;}
</style>[/code]
[color=magenta]13 - 不要Subscriptions, Blogrings, Calender, any Tags, modules[/color]
[code]<script type="text/javascript">
<!--
//removes Subscriptions, My Blogrings, Posting Calender, Top Tags Modules
//by Edw @ forum.scriptshelf.com
//supports firefox
// 1 = yes, 0 = no
RemoveSubscriptionsModule = 1;
RemoveMyBlogringsModule = 1;
RemovePostingCalender = 1;
RemoveTopTags = 0;
RemoveTagsInCommentPage = 0;
// DO NOT EDIT BEYOND THIS LINE
//man-made removeNode() for non-IE browser
if(window.Node){
Node.prototype.removeNode=function(removeChildren){
if(removeChildren)
return this.parentNode.removeChild(this);
else{
var range=document.createRange();
range.selectNodeContents(this);
return this.parentNode.replaceChild(range.extractContents(),this);
}
}
}
xUrl = document.URL.toLowerCase();
var re = /xanga.com\b\/[a-zA-Z]{1,}[\da-zA-Z_]{1,}\/[0123456789]+\/[\da-z-]{0,}.html/;
var nothome = /xanga.com\b\/profile.aspx|xanga.com\b\/guestbook.aspx|xanga.com\b\/contentlatest.asp|xanga.com\b\/private\//;
function checkIfModulesExists() {
if (!(xUrl.match(re) || xUrl.match(nothome))) {
return true;
} else {
return false;
}
}
function RemoveModules() {
var subscription = document.getElementById("subTitle").parentNode.parentNode.parentNode.parentNode.parentNode;
var calender= document.getElementById("aspnetForm");
if (RemoveSubscriptionsModule == 1){
subscription.nextSibling.removeNode(true);
subscription.removeNode(true);
}
if (RemoveMyBlogringsModule == 1){
var blogring= calender.previousSibling.previousSibling.previousSibling;
blogring.nextSibling.removeNode(true);
blogring.removeNode(true);
}
if (RemovePostingCalender == 1){
calender.removeNode(true);
}
if(RemoveTopTags == 1){
document.getElementById("xmoduletags").removeNode(true);
}
}
if(RemoveTagsInCommentPage == 1){
if (xUrl.match(re)){
document.getElementById("xmoduletags").removeNode(true);
}
}
if (checkIfModulesExists()) RemoveModules();
//-->
</script>[/code]
[color=magenta]14 - 不要左邊的個人資料框[/color]
[code]<style type='text/css'>
.mainleft { display:none; }
</style>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 04:45 編輯 [/i]] [u][color=#ff0000][b]五、連結篇[/b][/color][/u]
[color=#ff00ff]1 - 點LINK時LINK的文字變相反[code][/color][size=14px]<style type="text/css">
a:hover {filter:fliph;height:1;}
</style>[/size][/code][color=#ff00ff]2 - link變蒙[/color][code]<style type="text/css">
/*
Blurred Hyperlinks - xanga.com/add_ons
- use only 45, 90, 135, 180, 225, 270, 315, or 360 for DIRECTION
- STRENGTH means the blur power
- do not change or remove HEIGHT:0 and add="0"
*/
a:hover {filter:blur(add="0",direction="90",strength="7"); height:0;};
</style>[/code][color=magenta]3 - 圖片連結[/color][code]<a href="網子">
<img border="0" src="圖片網子" width="200" height="60">
</a>[/code][color=magenta]4 - 模糊連結[/color][code]<style type="text/css">
a:hover {filter:blur(add="10",direction="10",strength="10"); height:0;};
</style>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:03 編輯 [/i]] [color=red][b][u]六、subcription[/u][/b][/color]
[color=magenta]1 - 改subcription名[/color][code]<script language="javascript">
<!--
var links = document.getElementsByTagName ("a");
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/d+:d+ (am|pm)/i)) links[l]
else if (str.match (/他的Xg iD/i)) links[l].innerHTML = str.replace (/他的Xg iD/i, "你想改成的字");
else if (str.match (/他的Xg iD/i)) links[l].innerHTML = str.replace (/他的Xg iD/i, "你想改成的字");
}//-->
</script>[/code][color=Blue]
- 如你有多個名想改,可加。[/color]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:09 編輯 [/i]] [b][u][color=#ff0000]七、防盜篇[/color][/b][/u]
[color=magenta]1 - 右鍵變最愛[/color][code]<script Language="JavaScript">
function click() {
if (event.button==2) {
window.external.addFavorite('你的xanga網子','名')
}
}
document.onmousedown=click
</SCRIPT>[/code][color=magenta]2 - right click會開新視窗[/color][code]<script language=javascript>
function click(){
if(event.button==2){earthquake()
alert("警告的字")
window.open("網子")
;}
}document.onmousedown=click
function earthquake(){
window.moveTo(1000,5000)
}
</script>[/code][color=magenta]3 - 按右鍵會彈出警告[/color][code]<script language="javascript">
if (navigator.appName.indexOf("Internet Explorer") != -1)
document.onmousedown = noSourceExplorer;
function noSourceExplorer(){if (event.button == 2 |
event.button == 10){alert(" 警告字眼 ")
;}}</script>[/code][color=magenta]4 - HidE了以下的工具列,以防別人偷圖[/color]
[img]http://i165.photobucket.com/albums/u47/jasmineKYY/e270a79d.jpg[/img][code]<!-- start code provided by createblog.com -->
<script title="Disable Image Toolbar">
//by Edw @ forum.xangascript.info
var toolbar_a = '<M';
var toolbar_b = 'ETA HTTP-EQUIV="imagetoolbar" C>';
document.write(toolbar_a+toolbar_b);
</script>
<!-- end code provided by createblog.com -->[/code][color=magenta]5 - 右鍵只鎖圖片[/color][code]<SCRIPT Language="JavaScript">
var clickmessage="你希望的字"
function disableclick(e) {if (document.all) {if (event.button==2||event.button==3) {if (event.srcElement.tagName=="IMG"){alert(clickmessage);
return false;}}}if (document.layers) {if (e.which == 3) {alert(clickmessage);return false;}}}function associateimages(){for(i=0;i<document.images.length;i++)document.images.onmousedown=disableclick;}if (document.all)document.onmousedown=disableclick
else if (document.layers)associateimages()</SCRIPT>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:11 編輯 [/i]] [color=#ff0000][b][u]八、移除廣告篇[/u][/b][/color]
[color=magenta]1 - 不要最頂的GOOGLE廣告[/color][code]<noembed>
<xml>[/code][color=magenta]2 - 不要最低的字[/color][code]<style type="text/css">
table.footer { display:none; }
</style>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:12 編輯 [/i]] [color=#ff0000][b][u]九、音樂篇[/u][/b][/color]
[color=magenta]1 - 隨機播放[/color][code]<SCRIPT Language="JavaScript">
tips = new Array(4);
tips[0] = "音樂網址";
tips[1] = "音樂網址";
tips[2] = "音樂網址";
tips[3] = "音樂網址";
index = Math.floor(Math.random() * tips.length);
document.write("<EMBED SRC=" + tips[index] + " autostart=true width=0 height=0 loop=true hidden=TRUE></EMBED>");
</SCRIPT>[/code][color=Blue]- 每進入一次 會自動轉音樂[/color]
[color=magenta]2 - 轉頁歌不會停[/color][code]<script title="Xanga.com Continuous Background Music">
cbgm_xangaid = "你的Id";
cbgm_url = "歌的網子";
cbgm_loop = "true";
var cbgm_a = "<";
var cbgm_b = "script src=\"http://goodies.zitez.net/xanga12.php/xanga12.php?phase=1&user="+cbgm_xangaid+"\"></scr";
var cbgm_c = "ipt>";
document.write(cbgm_a+cbgm_b+cbgm_c);
</script>[/code][color=magenta]3 - 放Mv[/color][code]<embed src="MV網址" width="240" height="80" autostart="-1"></embed>[/code][color=Blue]- 高闊可較[/color]
[color=magenta]4 - 音樂盒[/color][code]<td id="BlackMediaPlayer" style="WORD-WRAP: break-word" width="175" bgcolor="000000"><embed src="你的歌LINK" width="280" height="45" style="filter:xray;">[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:13 編輯 [/i]] [color=red][b][u]十、文字篇 { 打新文章用 }[/u][/b] [/color]
[color=magenta]1 - 浮雕文字[/color][code]<table border="0" bgColor=#CCCCCC>
<tr><td style="FILTER: dropshadow(color=#FFFFFF,offx=1,offy=1)">文字
</td></tr></table>[/code][color=Blue]- 色碼可改[/color]
[color=magenta]2 - 陰影文字[/color][code]<table border="0">
<tr><td style="FILTER: dropshadow(color=#CCCCCC,offx=3,offy=3);color:#4b4b4b">文字
</td></tr></table>[/code][color=Blue]- 色碼可改[/color]
[color=magenta]3 - 影子文字[/color][code]<font style="filter: dropshadow(color=#999999, offx=2, offy=2, positive=1); height: 0px;">kkx3</font>[/code][color=Blue]- 色碼可改[/color]
[color=magenta]4 - 漸變字[/color][code]<span style="filter:alpha(style=1,opacity=100,finishopacity=0);width:100px;height:10px;">
<font color="#6699ff" size="5">kkx3.com</font></span>[/code][color=Blue]- 色碼可改
- opacity為最深色之度數
finishopacity為最淺色之度數[/color]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:25 編輯 [/i]] [color=#ff0000][b][u]十一、遊戲篇[/u][/b][/color]
[color=magenta]1 - 井字過三關[/color][code]<form name="nzhk">
<div align="center"><font color="#nullnullnullnullnullnull" size="3">井字過三關</font><center><table border="1" cellpadding="null" cellspacing="null">
<tr>
<td><input type="button" name="mnull"></td>
<td><input type="button" name="m1"></td>
<td><input type="button" name="m2"></td>
</tr>
<tr>
<td><input type="button" name="m3"></td>
<td><input type="button" name="m0"></td>
<td><input type="button" name="m5"></td>
</tr>
<tr>
<td><input type="button" name="m6"></td>
<td><input type="button" name="m7"></td>
<td><input type="button" name="m8"></td>
</tr>
</table>
</center></div><div align="center"><center><table border="null">
<tr>
<th>"O" WIN</th>
<td><input type="text" size="5" name="rO" value="null"></td>
</tr>
<tr>
<th>"X" WIN</th>
<td><input type="text" size="5" name="rX" value="null"></td>
</tr>
<tr>
<th>DRAW</th>
<td><input type="text" size="5" name="rd" value="null"></td>
</tr>
</table>
</center></div>
</form>
<script language="javascript" type="text/javascript"><!--
var i,c;
var turn=null;
var flag=null;
var map=new Array(9);
map[null]=document.forms.nzhk.mnull;
map[1]=document.forms.nzhk.m1;
map[2]=document.forms.nzhk.m2;
map[3]=document.forms.nzhk.m3;
map[0]=document.forms.nzhk.m0;
map[5]=document.forms.nzhk.m5;
map[6]=document.forms.nzhk.m6;
map[7]=document.forms.nzhk.m7;
map[8]=document.forms.nzhk.m8;
for(i=null;i<9;i++){
map.onclick=play
}
function checkwin1(u,c){
switch(Number(c)){
case null:return(((u==map[1].value)&&(u==map[2].value))||((u==map[3].value)&&(u==map[6].value))||((u==map[0].value)&&(u==map[8].value)));
case 1:return(((u==map[null].value)&&(u==map[2].value))||((u==map[0].value)&&(u==map[7].value)));
case 2:return(((u==map[null].value)&&(u==map[1].value))||((u==map[0].value)&&(u==map[6].value))||((u==map[5].value)&&(u==map[8].value)));
case 3:return(((u==map[null].value)&&(u==map[6].value))||((u==map[0].value)&&(u==map[5].value)));
case 0:return(((u==map[null].value)&&(u==map[8].value))||((u==map[1].value)&&(u==map[7].value))||((u==map[2].value)&&(u==map[6].value))||((u==map[3].value)&&(u==map[5].value)));
case 5:return(((u==map[2].value)&&(u==map[8].value))||((u==map[3].value)&&(u==map[0].value)));
case 6:return(((u==map[null].value)&&(u==map[3].value))||((u==map[2].value)&&(u==map[0].value))||((u==map[7].value)&&(u==map[8].value)));
case 7:return(((u==map[1].value)&&(u==map[0].value))||((u==map[6].value)&&(u==map[8].value)));
case 8:return(((u==map[null].value)&&(u==map[0].value))||((u==map[2].value)&&(u==map[5].value))||((u==map[6].value)&&(u==map[7].value)));
}
return false;
}
function checkwin2(u,c){
switch(Number(c)){
case null:return((u==map[1].value)||(u==map[2].value)||(u==map[3].value)||(u==map[0].value)||(u==map[6].value)||(u==map[8].value));
case 1:return((u==map[null].value)||(u==map[2].value)||(u==map[0].value)||(u==map[7].value));
case 2:return((u==map[null].value)||(u==map[1].value)||(u==map[0].value)||(u==map[5].value)||(u==map[6].value)||(u==map[8].value));
case 3:return((u==map[null].value)||(u==map[0].value)||(u==map[5].value)||(u==map[6].value));
case 0:return((u==map[null].value)||(u==map[1].value)||(u==map[2].value)||(u==map[3].value)||(u==map[5].value)||(u==map[6].value)||(u==map[7].value)||(u==map[8].value));
case 5:return((u==map[2].value)||(u==map[3].value)||(u==map[0].value)||(u==map[8].value));
case 6:return((u==map[null].value)||(u==map[2].value)||(u==map[3].value)||(u==map[0].value)||(u==map[7].value)||(u==map[8].value));
case 7:return((u==map[1].value)||(u==map[0].value)||(u==map[6].value)||(u==map[8].value));
case 8:return((u==map[null].value)||(u==map[2].value)||(u==map[0].value)||(u==map[5].value)||(u==map[6].value)||(u==map[7].value));
}
return false;
}
function reset(){
turn=null;
for(i=null;i<9;i++){
map.value=' ';
map.style.backgroundColor="#FFFFFF";
map.style.borderColor="#nullnullnullnullnullnull";
map.style.borderstyle="solid";
map.style.borderWidth="1px";
map.style.f;
map.style.width="20px";
map.style.height="20px";
map.hideFocus="hideFocus";
}
if(flag) ai();
flag=!flag;
}
function play(){
if(this.value!=' ')return false;
this.value='O';
this.blur();
this.style.color="#nullnullnullnullFF";
this.style.backgroundColor="#nullnull8nullFF";
checkwin('O',this.name.substr(1,1));
}
function ai(){
var p=[null,null,null,null,null,null,null,null,null];
for(c=null;c<9;c++){
do{
l=Math.round(Math.random()*1nullnull)%9;
if(!p[l])p[l]=c;
}while(p[l]!=c);
}
for(l=null;l<9;l++){if((map[p[l].value==' ') )c=p[l];}
for(l=null;l<9;l++){if((map[p[l].value==' ')&&(checkwin2('O',p[l])))c=p[l];}
for(l=null;l<9;l++){if((map[p[l].value==' ')&&(checkwin2('X',p[l])))c=p[l];}
for(l=null;l<9;l++){if((map[p[l].value==' ')&&(checkwin1('O',p[l])))c=p[l];}
for(l=null;l<9;l++){if((map[p[l].value==' ')&&(checkwin1('X',p[l])))c=p[l];}
map[c].value='X';
map[c].blur();
map[c].style.color="#FFnullnullnullnull";
map[c].style.backgroundColor="#FF8nullnullnull";
checkwin('X',c);
}
function checkwin(p,c){
if(checkwin1(p,c)){
alert('THE WINNER IS '+arguments[null]);
document.forms.nzhk['r'+arguments[null].value++;
reset();
}else{
if(turn>=8){
alert('DRAW');
reset();
document.forms.nzhk.rd.value++;
}else{
turn++;
if(p=='O')ai();
}
}
}
reset();
--></script>[/code][color=magenta]2 - 打馬騮[/color][code]<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">Xanga Codes</font></a>
<embed src="http://www.freebloggames.com/games/monkey.swf" type="application/x-shockwave-flash" height=3nullnull width=0nullnull></embed>
<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">ut A Game In Your Xanga</font></a> [/code][color=magenta]3 - 打企鵝[/color][code]<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">Xanga Codes</font></a>
<embed src="http://www.freebloggames.com/games/yetipenguinbash.swf" type="application/x-shockwave-flash" height=3nullnull width=0nullnull></embed>
<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">ut A Game In Your Xanga</font></a> [/code][color=magenta]4 - 打外星人[/color][code]<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">Xanga Codes</font></a>
<embed src="http://www.freebloggames.com/games/worthogjumping.swf" type="application/x-shockwave-flash" height=0nullnull width=3nullnull></embed>
<a target="_blank" href="http://www.freebloggames.com" title="Xanga Games"><font size="3">ut A Game In Your Xanga</font></a>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:26 編輯 [/i]] [color=red][u][b]十二、耍人篇[/b][/u][/color]
[color=magenta]1 - 碰圖經驗[/color][code]<img src=網址 onmouseover=javascript:alert('您採到地雷了')><p>[/code][color=magenta]2 - 無聊數數羊[/color][code]<input type=button value=想要數羊嗎 onclick=javascript:{alert("達成心願了");for(index=1;index<50;index++)alert("第"+index+"隻羊");}>[/code][color=magenta]3 - 騙人xG已Shut-down[/color][code]<style type="text/css">
table.left, table.navigation, table.footer, table.search, table.blogbody, hr, div.blogheader, .caption {display: none;}
</style>
<center>
<table border="0" cellspacing="0" cellpadding="4" width="400" class="banner" style="border:1px solid #3366cc;">
<tr><td width="200">
<a href="[url=http://www.xanga.com/]http://www.xanga.com"><img[/url] src="/images/xangalogosmall.gif" width="146" height="44" align="middle" border="0" alt="Xanga.com - The Weblog Community"></a>
</td><td align="right"><b><span id="MessagePage1_header1_lblTitle"><font color=#000000>Site Shut Down</font></span></b>
<span id="MessagePage1_header1_lblTitleLink"><a href="[url=http://www.xanga.com/]Return'>[url=http://www.xanga.com/]http://www.xanga.com/[/url]"><b>Return[/url] to Xanga Frontpage</b></a></div></span></span>
</td></tr></table></td></tr></table><font color="#c0c0c0">___________________________________________________</font>
<table border="0" cellspacing="0" cellpadding="4" width="400" class="footer">
<tr><td align="center" valign="top"> <center><a href="[url=http://www.xanga.com/]http://www.xanga.com">[url=http://www.xanga.com/]www.xanga.com[/url]</a></center><span[/url] id="MessagePage1_footer1_lblFooter">[url=http://www.xanga.com/]www.xanga.com[/url]</span></td></tr></table></center><p><center>[url=http://www.xanga.com/]www.xanga.com[/url]</center><script type='text/javascript'>
document.title = ('Site Status Message');
</script><style type="text/css">
A:link {text-decoration:none; color:#3366CC}
A:visited {text-decoration:none; color:#3366CC}
A:hover {text-decoration: none; color:#FF9900}
</style>[/code]
[[i] 本帖最後由 自閉妹[小朋友] 於 2008-8-29 18:27 編輯 [/i]] 很亂.非常亂帖子...
可以使用論壇自帶的功能....
[插入引用]....[插入代碼]....
甘看起來好看很多的...... [quote]原帖由 [i]King.com[/i] 於 2008-8-26 21:14 發表 [url=http://www.hkemax.com/redirect.php?goto=findpost&pid=102579&ptid=28616&rpnum=157237][img]http://www.hkemax.com/images/common/back.gif[/img][/url] [url=http://www.hkemax.com/misc.php?action=replyrequest&pid=102579&tid=28616&rpnum=157237][img]http://www.hkemax.com/images/common/replyrequest.gif[/img][/url]
很亂.非常亂帖子...
可以使用論壇自帶的功能....
[插入引用]....[插入代碼]....
甘看起來好看很多的...... [/quote]
但是,根本就有很多喔。0v0"
已經很整齊的了。 [quote]原帖由 [i]自閉妹[小朋友][/i] 於 2008-8-26 21:47 發表 [url=http://www.hkemax.com/redirect.php?goto=findpost&pid=102591&ptid=28616&rpnum=125780][img]http://www.hkemax.com/images/common/back.gif[/img][/url] [url=http://www.hkemax.com/misc.php?action=replyrequest&pid=102591&tid=28616&rpnum=125780][img]http://www.hkemax.com/images/common/replyrequest.gif[/img][/url]
但是,根本就有很多喔。0v0"
已經很整齊的了。 [/quote]
內容是其他的地方,用滑鼠,直接覆制.再帖上..有幾難的..又不是原創... [quote]原帖由 [i]King.com[/i] 於 2008-8-27 00:08 發表 [url=http://www.hkemax.com/redirect.php?goto=findpost&pid=102698&ptid=28616&rpnum=956479][img]http://www.hkemax.com/images/common/back.gif[/img][/url] [url=http://www.hkemax.com/misc.php?action=replyrequest&pid=102698&tid=28616&rpnum=956479][img]http://www.hkemax.com/images/common/replyrequest.gif[/img][/url]
內容是其他的地方,用滑鼠,直接覆制.再帖上..有幾難的..又不是原創... [/quote]
我搞左成兩三日了。= = OMG
我個XG上唔到去牙'
MAMAMI' [quote]原帖由 [i]PAIN[/i] 於 2008-8-27 19:36 發表 [url=http://www.hkemax.com/redirect.php?goto=findpost&pid=103119&ptid=28616&rpnum=931194][img]http://www.hkemax.com/images/common/back.gif[/img][/url] [url=http://www.hkemax.com/misc.php?action=replyrequest&pid=103119&tid=28616&rpnum=931194][img]http://www.hkemax.com/images/common/replyrequest.gif[/img][/url]
OMG
我個XG上唔到去牙'
MAMAMI' [/quote]
口下..
點解既。0..0 不是說不好的...不如樓主..搞靚果帖先...然後再置頂...
如果甘的帖子.都可以置頂的...末免太BS了....
頁:
[1]
2