語法展示::  http://home.graffiti.net/wdsdfdsfzs/


請用IE6.0或更新版本觀看語法特效展示

將以下程式碼複製,貼在<body>及</body>標籤之間。

<center>
<script language="JavaScript">
<!--
var x;
var tob=0;
var d=new Date();
d.setTime(d.getTime()+(1000*60*60*24*30));
var thecookie;
var fgcookie;
function checkbg()
{
if(document.cookie.indexOf("bgcolor")!=-1)
 {
 thecookie=document.cookie;
 var cut=thecookie.indexOf("bgcolor=");
 var color=thecookie.substring(cut+8,cut+15);
 document.bgColor=color;
 }
}
function ckeckfg()
{
if(document.cookie.indexOf("fgcolor")!=-1)
 {
 fgcookie=document.cookie;
 var cut=fgcookie.indexOf("fgcolor=");
 var color=fgcookie.substring(cut+8,cut+15);
 document.fgColor=color;
 }
}
function create(x)
{
if(tob==0){createbg(x)}
if(tob==1){createfg(x)}
}
function createbg(x)
{
if(document.cookie.indexOf("bgcolor")==-1 && tob==0)
 {
 document.cookie="bgcolor="+x+";expires="+d.toGMTString();
 document.bgColor=x;
 }
else if(tob==0)
 {
 document.cookie="bgcolor="+x+";expires="+d.toGMTString();
 thecookie=document.cookie;
 document.bgColor=x;
 }
}
function createfg(x)
{
if(document.cookie.indexOf("fgcolor")==-1 && tob==1)
 {
 document.cookie="fgcolor="+x+";expires="+d.toGMTString();
 document.fgColor=x;
 }
else
 {
 document.cookie="fgcolor="+x+";expires="+d.toGMTString();
 fgcookie=document.cookie;
 document.fgColor=x;
 }
}
-->
</script>
<input type="button" style="background-color: '#000000'" onclick="create('#000000')">
<input type="button" style="background-color: '#808080'" onclick="create('#808080')">
<input type="button" style="background-color: '#C0C0C0'" onclick="create('#C0C0C0')">
<input type="button" style="background-color: '#66FFFF'" onclick="create('#66FFFF')">
<input type="button" style="background-color: '#7BE2EF'" onclick="create('#7BE2EF')">
<input type="button" style="background-color: '#6BA7D6'" onclick="create('#6BA7D6')">
<input type="button" style="background-color: '#0066CC'" onclick="create('#0066CC')">
<input type="button" style="background-color: '#6363CE'" onclick="create('#6363CE')">
<input type="button" style="background-color: '#330099'" onclick="create('#330099')">
<input type="button" style="background-color: '#5D0063'" onclick="create('#5D0063')">
<input type="button" style="background-color: '#FF99CC'" onclick="create('#FF99CC')">
<input type="button" style="background-color: '#B85FA3'" onclick="create('#B85FA3')">
<input type="button" style="background-color: '#B188CF'" onclick="create('#B188CF')">
<br>
<input type="button" style="background-color: '#FFCC00'" onclick="create('#FFCC00')">
<input type="button" style="background-color: '#FFFF00'" onclick="create('#FFFF00')">
<input type="button" style="background-color: '#EAEF7B'" onclick="create('#EAEF7B')">
<input type="button" style="background-color: '#66FF00'" onclick="create('#66FF00')">
<input type="button" style="background-color: '#006633'" onclick="create('#006633')">
<input type="button" style="background-color: '#339999'" onclick="create('#339999')">
<input type="button" style="background-color: '#336600'" onclick="create('#336600')">
<input type="button" style="background-color: '#666600'" onclick="create('#666600')">
<input type="button" style="background-color: '#996633'" onclick="create('#996633')">
<input type="button" style="background-color: '#990000'" onclick="create('#990000')">
<input type="button" style="background-color: '#FF0000'" onclick="create('#FF0000')">
<input type="button" style="background-color: '#B8855F'" onclick="create('#B8855F')">
<input type="button" style="background-color: '#FF6600'" onclick="create('#FF6600')">
</center>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 紫蓮の翼 的頭像
    紫蓮の翼

    紫蓮の翼

    紫蓮の翼 發表在 痞客邦 留言(0) 人氣()