close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
Dog-Lovers' Tees.

Unleash yourself and shop our special collection of tees and accessories for you and your pooch.
From our sponsors
FrontPage 顯示時間程式碼
Nov 4th 2013, 17:33

Microsoft Office FrontPage 在編輯模式下顯示的年份沒問題(2013.11.05),可是在網頁模式下確變成:113.11.05

程式碼:
<div style="position: absolute; width: 480px; height: 50px; z-index: 1; left: 490px; top: 265px" id="show"></div>

<style type="text/css"> #show{color:"#ffffff"; font-size:40px; font-weight:bold; letter-spacing: 2pt}

</style>

<script language="javascript">

function timeshow(){

dayname= new Array("日","一","二","三","四","五","六");

d=new Date( );

var show="";

var y=d.getYear();

var m=((d.getMonth()*1+1)<10)? "0"+(d.getMonth()*1+1):(d.getMonth()*1+1);

var da=(d.getDate()<10)? "0"+d.getDate():d.getDate();

var dd=(dayname[d.getDay()]<10)? "0"+dayname[d.getDay()]:dayname[d.getDay()];

var hi=(d.getHours()<10) ? "0"+d.getHours():d.getHours();

var mi=(d.getMinutes()<10)? "0"+d.getMinutes():d.getMinutes();

var Si=(d.getSeconds()<10)? "0"+d.getSeconds():d.getSeconds();

show+=y +"." +m +"." +da +"." +dd +" " +hi +":" +mi +":" +Si;

document.getElementById("show").innerHTML=show;

setTimeout("timeshow()",1000);

}

</script></head>
<body onload="timeshow()">

請問有人知道是哪兒錯了嗎?

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkotgszvx368m 的頭像
    kkotgszvx368m

    【韓劇推薦】2016年8,韓劇看什麼呢?2016韓劇推薦好看的 , 2016韓劇推薦必看 , 2016韓劇 , 2016韓劇排行榜前十名 , 韓劇推薦 , 2016韓劇介紹 , 2016韓劇排行榜 , 2016韓劇列表 ,

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