正數
</a><font color=#字體色碼 size=1px>XX已經<script language="javascript">
var now=new Date();var spday=new Date(西元年,月-1,日);a=(now.getTime()-spday.getTime())/

(24*60*60*1000);a=Math.ceil(a); document.write
("<b>"+a+"</b>");</script>天了</font>

 

倒數
</a><font color=#字體色碼 size=1px>XX還有<script language="javascript">
var now=new Date();var spday=new Date(西元年,月-1,日);a=(now.getTime()-spday.getTime())/

(24*60*60*1000);a=Math.ceil(a); document.write
("<b>"+a+"</b>");</script>天了</font>


◎底線部份請自行修改 
◎日期,正倒數的敘述,自己喜歡的顏色語法沒有斷行,純粹是版面關係自己斷的
◎關於[月份-1],請直接打上原始月份,後面的 "-1" 不要動它 

來源:小麵
arrow
arrow
    全站熱搜

    moonlightblue 發表在 痞客邦 留言(1) 人氣()