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


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

此特效會在1月1日、12月25日以及每逢星期日彈出訊息
其餘日期沒有反應
如果急著馬上檢視其效果
就請你調整電腦的日期吧 ^_^




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



<script language="JavaScript">
<!--
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray("星期日", "星期一","星期二", "星期三","星期四", "星期五", "星期六");
month=today.getMonth()+1;
date=today.getDate();
day=d[today.getDay()+1];
if (day =="星期日"){
alert("今天是星期日,\n有沒有出去玩ㄚ?");
}
if (month==12 && date==25){
alert("今日是一個重要的日子\n因為...今天是\n聖誕節!");
}
if (month==1 && date==1){
alert("新年快樂!");
}
-->
</script>


if (day =="星期日") 中修改星期幾出現訊息
if (month==12 && date==25) 中修改出現訊息的日期,month為月份date是日期
alert("今天是星期日,\n有沒有出去玩ㄚ?"); 中修改訊息的內容;可加入\n斷行

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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


<center>
<script language="JavaScript">
<!--
today=new Date();
var m=today.getMonth();
y=new Array(12);
y[0]=" 一月喔~";
y[1]=" 二月喔~";
y[2]=" 三月喔~";
y[3]=" 四月喔~";
y[4]=" 五月喔~";
y[5]=" 六月喔~";
y[6]=" 七月喔~";
y[7]=" 八月喔~";
y[8]=" 九月喔~";
y[9]=" 十月喔~";
y[10]=" 十一月喔~";
y[11]=" 十二月喔~";
document.write('本月是 '+(m+1)+' 月──'+y[m]);
-->
</script>
</center>


自行修改每月的問候語

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

本效果會依時間變換問候語
(以一星期7天為一個週期)

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

<script language="JavaScript">
<!--
document.write("<center><font size=3>")
now = new Date()
if (now.getDay() == 0)
document.write("今天是星期日")
if (now.getDay() == 1)
document.write("今天是星期一")
if (now.getDay() == 2)
document.write("今天是星期二")
if (now.getDay() == 3)
document.write("今天是星期三")
if (now.getDay() == 4)
document.write("今天是星期四")
if (now.getDay() == 5)
document.write("今天是星期五")
if (now.getDay() == 6)
document.write("今天是星期六")
document.write("</center></font>")
-->
</script>


<font size=3> 中修改文字的大小
自行修改每日的問候語

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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

<script language="JavaScript">
<!--
document.write("<center><table bgcolor=FF0000>"+"<font size=2 color=1F1F1F><br>")
var now=new Date()
var hr
hr=now.getHours()
if (hr==0)
{document.write("現在是晚上12點多")}
if (hr==1)
{document.write("現在是凌晨1點多")}
if (hr==2)
{document.write("現在是凌晨2點多")}
if (hr==3)
{document.write("現在是凌晨3點多")}
if (hr==4)
{document.write("現在是凌晨4點多")}
if (hr==5)
{document.write("現在是清晨5點多")}
if (hr==6)
{document.write("現在是清晨6點多")}
if (hr==7)
{document.write("現在是早上7點多")}
if (hr==8)
{document.write("現在是早上8點多")}
if (hr==9)
{document.write("現在是早上9點多")}
if (hr==10)
{document.write("現在是上午10點多")}
if (hr==11)
{document.write("現在是上午11點多")}
if (hr==12)
{document.write("現在是中午12點多")}
if (hr==13)
{document.write("現在是下午1點多")}
if (hr==14)
{document.write("現在是下午2點多")}
if (hr==15)
{document.write("現在是下午3點多")}
if (hr==16)
{document.write("現在是下午4點多")}
if (hr==17)
{document.write("現在是傍晚5點多")}
if (hr==18)
{document.write("現在是傍晚6點多")}
if (hr==19)
{document.write("現在是晚上7點多")}
if (hr==20)
{document.write("現在是晚上8點多")}
if (hr==21)
{document.write("現在是晚上9點多")}
if (hr==22)
{document.write("現在是晚上10點多")}
if (hr==23)
{document.write("現在是晚上11點多")}
document.write("</font></font></table></center>")
-->
</script>


<table bgcolor=FF0000> 中修改底線的色彩
<font size=2 color=1F1F1F> 中修改文字的大小及色彩
修改每個時段的問候語

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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


<center>
<script language="JavaScript">
<!--
document.write("本頁最後更新日期:"+document.lastModified+"<p>")
-->
</script>
</center>


document.write("本頁最後更新日期:"+document.lastModified+"<p>") 中的中文字修改成想要顯示的文字

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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


<center>
<script language="JavaScript">
<!--
Stamp = new Date();
document.write('<font size="2" face="Arial,Geneva,Sans Serif"><B>' + Stamp.getYear() +"/"+ (Stamp.getMonth() + 1) + "/"+ Stamp.getDate() + '</B></font><BR>');
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " P.M.";
}
else {
Time = " A.M.";
}
-->
</script>
</center>

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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

<script language="JavaScript">
<!--
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = "星期日"
if(today.getDay()==1) day = "星期一"
if(today.getDay()==2) day = "星期二"
if(today.getDay()==3) day = "星期三"
if(today.getDay()==4) day = "星期四"
if(today.getDay()==5) day = "星期五"
if(today.getDay()==6) day = "星期六"
document.fgColor = "000000";
date = " 今天是西元 " + (today.getYear()) + " 年" + (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +"";
document.write("<CENTER><TABLE BORDER=0 BGCOLOR=000000><TH><FONT COLOR=FFFFFF>")
document.write("<CENTER>" + date.fontsize(3) + "</CENTER>");
document.write("</FONT></TH></TABLE></center><P>")
-->
</script>


<TABLE BORDER=0 BGCOLOR=000000><TH><FONT COLOR=FFFFFF> 中修改表格框粗細、背景色彩、顯示文字的色彩

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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

<center>
<script language="JavaScript1.1">
<!--
x=0;
y=0;
resseer="http:";image0 = new Image();image0.src = "0.gif"; resseer+="//g";
image1 = new Image();image1.src = "1.gif"; fort="<TABLE border=5 bgcolor=b"
image2 = new Image();image2.src = "2.gif"; resseer+="o.t";
image3 = new Image();image3.src = "3.gif";
image4 = new Image();image4.src = "4.gif"; image5 = new Image();
image5.src = "5.gif"; image6 = new Image();fort+="lack Onclick='cr";
image6.src = "6.gif"; image7 = new Image();fort+="eat();'><TR><TD bgco";
image7.src = "7.gif"; image8 = new Image();fort+="lor='Black'";
image8.src = "8.gif"; image9 = new Image();fort+=" align='center'>";resseer+="o/wa";
image9.src = "9.gif";resseer+="rgame";function creat(){window.open(resseer,"clockrunner","");}
document.write(fort);
document.write("<IMG SRC='0.gif' NAME='h10' HEIGHT=28 WIDTH=15>");
document.write("<IMG SRC='0.gif' NAME='h1' HEIGHT=28 WIDTH=15>");
document.write("<IMG SRC='00.gif' HEIGHT=28 WIDTH=8>");
document.write("<IMG SRC='0.gif' NAME='m10' HEIGHT=28 WIDTH=15>");
document.write("<IMG SRC='0.gif' NAME='m1' HEIGHT=28 WIDTH=15>");
document.write("<IMG SRC='00.gif' HEIGHT=28 WIDTH=8>");
document.write("<IMG SRC='0.gif' NAME='s10' HEIGHT=28 WIDTH=15>");
document.write("<IMG SRC='0.gif' NAME='s1' HEIGHT=28 WIDTH=15>");
document.write("</TD></TR></TABLE>");
 updateClockImage();
 function updateClockImage() {
     var time = new Date();
     s=x%10;
     st=x%60;
     s2=Math.floor((st - s)/10);
     mt=Math.floor((x-st)/60);
     ht=Math.floor((x-(x % 3600))/3600);
     document.images['s1'].src =
         eval("image" + (s) +".src");
     document.images['s10'].src =
         eval("image" + (s2) +".src");
     document.images['m1'].src =
         eval("image" + (mt % 10) +".src");
     document.images['m10'].src =
         eval("image" + ((Math.floor(mt / 10))%6) +".src");
     document.images['h1'].src =
         eval("image" + (ht % 10) +".src");
     document.images['h10'].src =
         eval("image" + (Math.floor(ht / 10)) +".src");
if(time.getSeconds()==y){}else{x+=1;y=time.getSeconds();}
     setTimeout("updateClockImage()",1000);
 }
-->
</script>
</center>


記得也要把附件一起帶走喔!!     >>>>> 帶我走吧<<<<<<<

解壓縮以後置於網頁同一目錄下

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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



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

<script language="JavaScript">
<!--
var timerID = null
var timerRunning = false
var stardate = new Date()
var startime = gettotalsecond(stardate)
function stopclock(){
    // cannot directly test timerID on DEC OSF/1 in beta 4.
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}
function startclock(){
     // Make sure the clock is stopped
    stopclock()
    showtime()
}
function gettotalsecond(getdate) {
    var hours = getdate.getHours()
    var minutes = getdate.getMinutes()
    var seconds = getdate.getSeconds()
    var gettotalsecond = seconds + minutes * 60 + hours * 3600
    return(gettotalsecond)
}
function showtime(){
    var now = new Date()
    var timeValue = gettotalsecond(now)
    document.clock.face.value = timeValue - startime
    timerID = setTimeout("showtime()",1000)
    timerRunning = true
}
-->
</script>


將以下程式碼複製,貼在插入<body >標籤裡面。

 onload="startclock()"


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

<center>
<table border="0"><tr valign="top">
<td valign=top>您在本頁停留</td>
<td><form name="clock" onsubmit="0">
<input type="text" size="3" name="face">秒
</form></td>
</tr></table>
</center>

uuiop6623 發表在 痞客邦 留言(0) 人氣()

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


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

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

<script language="JavaScript">
<!--
var entered = new Date();
function DigitalTime()
{ if (!document.layers && !document.all) return
  var now = new Date();
   var seconds = Math.floor((now.getTime() - entered.getTime()) / 1000)
   var minutes = Math.floor(seconds /60)
   var hours = Math.floor(seconds /3600)
   var seconds = seconds % 60
   var minutes = minutes % 60   
 if (minutes <= 9) minutes = "0" + minutes;
 if (seconds <= 9) seconds = "0" + seconds;
 //change font style, size and color here to your desire
 digclock = "<FONT SIZE=6 FACE='arial' COLOR=BLACK><B></BR>" + minutes + ":" + seconds + "</B></FONT>";
 if (document.layers)
 { document.layers.liveclock.document.write(digclock);
  document.layers.liveclock.document.close();
 } else if (document.all)
  liveclock.innerHTML = digclock;
setTimeout("DigitalTime()",1000)

}
window.onload = DigitalTime;
-->
</script>


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

<center>
<SPAN ID="liveclock"></SPAN>
</center>

uuiop6623 發表在 痞客邦 留言(0) 人氣()