① webqq上面那種時鍾是用什麼做的啊
都可以吧 C#,Java C語言
② 有關時鍾的Web編程問題
<html><head><title>數字鍾</title>
<script language="JavaScript">
function aClock(){
var now=new Date();
var hour=now.getHours();
var mins=now.getMinutes();
var sec=now.getSeconds();
var timeStr=""+hour;
timeStr+=((mins<10)?":0":":")+mins;
timeStr+=((sec<10)?":0":":")+sec;
timeStr+=(hour>=12)?" PM.":" AM.";
document.clock_form.clock_text.value=timeStr;
clockId=setTimeout("aClock()",1000);
}
</script></head>
<body onLoad="aClock()"><br><br><br>
<form name="clock_form">
當前時間是:
<input type="text" name="clock_text" value ="">
</form></body></html>
③ Win10怎麼添加桌面日歷和時鍾
設置步驟:
1、顯示電腦桌面(即把所有窗口都最小化);
2、Windows Xp和Windows 2000設置有些不同:(其他Windows系統請自己參考設置)
Windows xp:在電腦桌面點擊滑鼠右鍵,出現菜單,選擇「屬性」,然後選擇「桌面」,然後選擇「自定義桌面」,然後選擇「web」,然後選擇「新建」,然後輸入: http://bjtime.cn/desk.htm ,確定,然後問你是否允許離線使用,確定,復制頁面結束,最後關閉「屬性」窗口。
Window 2000:在電腦桌面點擊滑鼠右鍵,選擇命令「活動桌面」->「新建桌面項目",在『位置』輸入框中輸入: http://bjtime.cn/desk.htm,確定,然後繼續確定,等待結束。
可指定日歷的背景,以便和windows桌面一致,方法是在 http://bjtime.cn/desk.htm後面加上#和顏色代碼,如:http://bjtime.cn/desk.htm#004E98 (windows xp),http://bjtime.cn/desk.htm#3a6ea5 (windows 2000)#後面的值就是日歷的背景顏色,上面是windows的預設顏色。你可以根據自己的情況任意修改。
3、現在桌面已經有了日歷,滑鼠移動到日歷最上方會浮現窗口框,點住上方的橫條可拖動,然後拉動顯示區域的四周到合適大小,滾動條消失。
如果加上日歷後出現桌面圖標文字透明問題,請看本頁後面的幫助。
如需取消桌面日歷 ,滑鼠移動到日歷最上方,出現橫條框,點擊最右邊的叉,即可關閉。或者參考前面設置時的操作路徑找到"自定義桌面",找到刪除按鈕。
④ .net web伺服器時鍾
昨天剛好做了一個,把下面的內容保存為ASPX文件就可以了:
<form runat=server>
下面這個Hidden變數用來暫存伺服器時間
<input name="ServerTime" type="hidden" value="<%=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")%>">
<input name="divCurrentUser" type="text" style="width:300px;border:0" readonly>
</form>
<script language=javascript>
getServerTime();
//計算當前伺服器時間
function getServerTime()
{
//取得要進行顯示的日期
var datetimeYou = document.getElementById('ServerTime').value.split(" ");
var yout1 = datetimeYou[0].split("-");
var yout2 = datetimeYou[1].split(":");
var nowY = parseFloat(yout1[0]);
var nowM = parseFloat(yout1[1]);
var nowD = parseFloat(yout1[2]);
var h = parseFloat(yout2[0]);
var m = parseFloat(yout2[1]);
var s = parseFloat(yout2[2]);
var daysMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
if(leapyear(nowY))
daysMonth[1] += 1;//閏年,2月加1
s = s + 1;
if (s >= 60)
{
s = 0;
m = m + 1;
if (m >= 60)
{
m = 0;
h = h + 1;
if (h >= 24)
{
h = 0;
nowD += 1;
if(nowD > daysMonth[nowM-1])
{
nowD = 1;
nowM += 1;
if(nowM > 12)
{
nowM = 1;
nowY += 1;
}
}
}
}
}
if (nowM < 10) nowM = "0" + nowM;
if (nowD < 10) nowD = "0" + nowD;
if (h < 10) h = "0" + h;
if (m < 10) m = "0" + m;
if (s < 10) s = "0" + s;
document.getElementById('ServerTime').value = nowY + "-" + nowM + "-" + nowD + " " + h + ":" + m + ":" + s;
var today,hour,second,minute,year,month,date;
var strDate ;
//注意:Javascript中的月要減1,比如現在4月,要寫成3
today=new Date(yout1[0],yout1[1]-1,yout1[2],yout2[0],yout2[1],yout2[2]);
var n_day = today.getDay();
switch (n_day)
{
case 0:{
strDate = "星期日"
}break;
case 1:{
strDate = "星期一"
}break;
case 2:{
strDate ="星期二"
}break;
case 3:{
strDate = "星期三"
}break;
case 4:{
strDate = "星期四"
}break;
case 5:{
strDate = "星期五"
}break;
case 6:{
strDate = "星期六"
}break;
case 7:{
strDate = "星期日"
}break;
}
year = today.getFullYear();
month = today.getMonth() + 1;
date = today.getDate();
hour = today.getHours();
minute =today.getMinutes();
second = today.getSeconds();
if(month<10) month="0"+month;
if(date<10) date="0"+date;
if(hour<10) hour="0"+hour;
if(minute<10) minute="0"+minute;
if(second<10) second="0"+second;
document.getElementById('divCurrentUser').value = "當前時間:" + year + "年" + month + "月" + date + "日 " + strDate +" " + hour + ":" + minute + ":" + second; //顯示時間
setTimeout("getServerTime()",1000)
}
//判斷參數是否閏年
function leapyear(year){
if(!/[^0]\d+/.test(year)){
//通過正則判斷年份的合法性
return false;
}
if(0==year)
return true;
if ( ((0==year%4) && !(0==year%100)) || (0==year%400) ){
return true;
}else{
if(year!=0)
return false;
}
}
</script>
⑤ 如何在博客中插入實時鍾
你想要什麼樣的時間顯示格式?
是數碼的還是傳統的中國時鍾?
下面有幾種時鍾代碼可供參考:
漂亮的手錶樣的時鍾:
1:第一步:把如下代碼加入>body>區域中
>SCRIPT language=JavaScript>
>!-- Beginning of JavaScript -
var now
var second
var minute
var hour
var degreeSecond
var degreeMinute
var degreeHour
var timer
var stepDegree=6
var stepDegreeHour=30
function checkTime() {
if (document.all) {
now=new Date()
second=now.getSeconds()
minute=now.getMinutes()
hour=now.getHours()
if (hour>=12) {hour=hour-12}
spinIt()
timer=setTimeout("checkTime()",200)
}
}
function spinIt() {
window.status=hour
secondObj.SetIdentity()
minuteObj.SetIdentity()
hourObj.SetIdentity()
degreeSecond=180+stepDegree*second
degreeMinute=180+stepDegree*minute
degreeHour=180+stepDegreeHour*hour+(Math.floor(stepDegree*minute/12))
secondObj.Rotate(0,0,degreeSecond)
minuteObj.Rotate(0,0,degreeMinute)
hourObj.Rotate(0,0,degreeHour)
}
// - End of JavaScript - -->
>/SCRIPT>
>DIV style="LEFT: 340px; POSITION: absolute; TOP: 100px">
>DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">>IMG height=102
src="bgclock.gif" width=100> >/DIV>
>DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
>OBJECT classid=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 height=14
id=secondObj style="HEIGHT: 102px; WIDTH: 100px" width=14>>PARAM NAME="HighQuality" VALUE="1">>PARAM NAME="Line0001" VALUE="SetFillStyle(1)">>PARAM NAME="Line0002" VALUE="SetLineColor(80,20,20)">>PARAM NAME="Line0003" VALUE="SetFillColor(80,20,20)">>PARAM NAME="Line0004" VALUE="Rect(0,0,1,32)">>/OBJECT>>/DIV>
>DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
>OBJECT classid=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 height=14
id=minuteObj style="HEIGHT: 102px; WIDTH: 100px" width=14>>PARAM NAME="HighQuality" VALUE="1">>PARAM NAME="Line0001" VALUE="SetFillStyle(1)">>PARAM NAME="Line0002" VALUE="SetLineColor(50,50,50)">>PARAM NAME="Line0003" VALUE="SetFillColor(50,50,50)">>PARAM NAME="Line0004" VALUE="Rect(0,0,1,30)">>/OBJECT>>/DIV>
>DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
>OBJECT classid=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 height=14 id=hourObj
style="HEIGHT: 102px; WIDTH: 100px" width=14>>PARAM NAME="HighQuality" VALUE="1">>PARAM NAME="Line0001" VALUE="SetFillStyle(1)">>PARAM NAME="Line0002" VALUE="SetLineColor(50,50,50)">>PARAM NAME="Line0003" VALUE="SetFillColor(50,50,50)">>PARAM NAME="Line0004" VALUE="Rect(0,0,1,16)">>/OBJECT>>/DIV>>/DIV>
>DIV
style="COLOR: #444444; FONT-SIZE: 8pt; LEFT: 200px; LETTER-SPACING: 0.6em; LINE-HEIGHT: 200%; POSITION: absolute; TEXT-ALIGN: center; TOP: 20px; WIDTH: 200px; fomnt-family: Verdana">>/DIV>
第二步:修改>body***>中的內容,將下面的代碼加入原>body***>中
onload=checkTime()
2.掛歷的時間顯示
<SCRIPT language=JavaScript>
function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + yy + '年' + mm + '月</font>'); }
function Date_of_Today(){
var now = new Date();
var cl = '<font color="#ff0000">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + now.getDate() + '</font>'); }
function Day_of_Today(){
var day = new Array();
day[0] = "星期日";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + day[now.getDay()] + '</font>'); }
function CurentTime(){
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;
var clock = hh+':';
if (mm < 10) clock += '0';
clock += mm+':';
if (ss < 10) clock += '0';
clock += ss;
return(clock); }
function refreshCalendarClock(){
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime(); }
var webUrl = webUrl;
document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td>');
document.write('<table id="CalendarClockFreeCode" border="0" cellpadding="0" cellspacing="0" width="60" height="70" ');
document.write('style="position:absolute;visibility:hidden" bgcolor="#eeeeee">');
document.write('<tr><td align="center"><font ');
document.write('style="cursor:hand;color:#ff0000;font-family:宋體;font-size:14pt;line-height:120%" ');
if (webUrl != 'netflower'){
document.write('</td></tr><tr><td align="center"><font ');
document.write('style="cursor:hand;color:#2000ff;font-family:宋體;font-size:9pt;line-height:110%" ');
}
document.write('</td></tr></table>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="61" bgcolor="#C0C0C0" height="70">');
document.write('<tr><td valign="top" width="100%" height="100%">');
document.write('<table border="1" cellpadding="0" cellspacing="0" width="58" bgcolor="#FEFEEF" height="67">');
document.write('<tr><td align="center" width="100%" height="100%" >');
document.write('<font id="calendarClock1" style="font-family:宋體;font-size:7pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock2" style="color:#ff0000;font-family:Arial;font-size:14pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock3" style="font-family:宋體;font-size:9pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock4" style="color:#100080;font-family:宋體;font-size:8pt;line-height:120%"><b> </b></font>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
setInterval('refreshCalendarClock()',1000);
</SCRIPT>
3.實時走動的時鍾
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
fCol = '000000'; //face colour.
sCol = 'ff0000'; //seconds colour.
mCol = '000000'; //minutes colour.
hCol = '000000'; //hours colour.
H = '....';
H = H.split('');
M = '.....';
M = M.split('');
S = '......';
S = S.split('');
Ypos = 0;
Xpos = 0;
Ybase = 8;
Xbase = 8;
dots = 12;
ns = (document.layers)?1:0;
if (ns) {
dgts = '1 2 3 4 5 6 7 8 9 10 11 12';
dgts = dgts.split(' ');
for (i = 0; i < dots; i++) {
document.write('<layer name=nsDigits'+i+' top=0 left=0 height=30 width=30><center><font face=Arial,Verdana size=1 color='+fCol+'>'+dgts[i]+'</font></center></layer>');
}
for (i = 0; i < M.length; i++) {
document.write('<layer name=ny'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>');
}
for (i = 0; i < H.length; i++) {
document.write('<layer name=nz'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>');
}
for (i = 0; i < S.length; i++) {
document.write('<layer name=nx'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>');
}
}
else {
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 1; i < dots+1; i++) {
document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30px;height:30px;font-family:Arial,Verdana;font-size:10px;color:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>');
}
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < M.length; i++) {
document.write('<div id=y style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>');
}
document.write('</div></div>')
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < H.length; i++) {
document.write('<div id=z style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>');
}
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < S.length; i++) {
document.write('<div id=x style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>');
}
document.write('</div></div>')
}
function clock() {
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(time.getMinutes())/360;
if (ns) {
Ypos = window.pageYOffset+window.innerHeight-60;
Xpos = window.pageXOffset+window.innerWidth-80;
}
else {
Ypos = document.body.scrollTop + window.document.body.clientHeight - 60;
Xpos = document.body.scrollLeft + window.document.body.clientWidth - 60;
}
if (ns) {
for (i = 0; i < dots; ++i){
document.layers["nsDigits"+i].top = Ypos - 5 + 40 * Math.sin(-0.49+dots+i/1.9);
document.layers["nsDigits"+i].left = Xpos - 15 + 40 * Math.cos(-0.49+dots+i/1.9);
}
for (i = 0; i < S.length; i++){
document.layers["nx"+i].top = Ypos + i * Ybase * Math.sin(sec);
document.layers["nx"+i].left = Xpos + i * Xbase * Math.cos(sec);
}
for (i = 0; i < M.length; i++){
document.layers["ny"+i].top = Ypos + i * Ybase * Math.sin(min);
document.layers["ny"+i].left = Xpos + i * Xbase * Math.cos(min);
}
for (i = 0; i < H.length; i++){
document.layers["nz"+i].top = Ypos + i * Ybase * Math.sin(hrs);
document.layers["nz"+i].left = Xpos + i * Xbase * Math.cos(hrs);
}
}
else{
for (i=0; i < dots; ++i){
ieDigits[i].style.pixelTop = Ypos - 15 + 40 * Math.sin(-0.49+dots+i/1.9);
ieDigits[i].style.pixelLeft = Xpos - 14 + 40 * Math.cos(-0.49+dots+i/1.9);
}
for (i=0; i < S.length; i++){
x[i].style.pixelTop = Ypos + i * Ybase * Math.sin(sec);
x[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(sec);
}
for (i=0; i < M.length; i++){
y[i].style.pixelTop = Ypos + i * Ybase * Math.sin(min);
y[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(min);
}
for (i=0; i < H.length; i++){
z[i].style.pixelTop = Ypos + i * Ybase*Math.sin(hrs);
z[i].style.pixelLeft = Xpos + i * Xbase*Math.cos(hrs);
}
}
setTimeout('clock()', 50);
}
if (document.layers || document.all) window.onload = clock;
// End -->
</script>
⑥ windows10系統怎樣添加時鍾到桌面
第一步、打開中國天氣網,找到自己所在城市的天氣預報界面,記下地址欄的城市代碼,備用。
第二步、打開微軟網頁日歷,點擊頂部「導入」按鈕。
第三步、在隨後出現的界面,點擊左側「訂閱」,在日歷連接中輸入「http://tq121.weather.com.cn/fcics/101090201.ics(其中紅的部分,為我們剛才記住的城市代碼)完成各項設置後點擊底部的「訂閱」,隨後會提示「正在同步」。
第四步、隨後網頁底部會提示「是否希望『自動完成』功能記住Web表單項?」選確定,關閉退出。
第五步、點開開始菜單,稍等下讓電腦同步完成,日歷磁貼就會顯示開頭圖片的效果了!
在Win10系統的日歷設置顯示農歷和天氣,其實還是蠻實用的。尤其是當你把日歷磁鐵放在開始菜單,或是依然使用開始屏幕的話,這樣你就能很方便地看到農歷和天氣信息了。
⑦ 網頁製作中如何製作時鍾
發2個不用連網的給你
帶時鍾的台歷:
第一步:把如下代碼加入<head>區域中:
<STYLE>A.menuitem {
COLOR: menutext; TEXT-DECORATION: none
}
A.menuitem:hover {
COLOR: highlighttext; BACKGROUND-COLOR: highlight
}
DIV.contextmenu {
BORDER-RIGHT: 2px outset; BORDER-TOP: 2px outset; Z-INDEX: 999; VISIBILITY: hidden; BORDER-LEFT: 2px outset; BORDER-BOTTOM: 2px outset; POSITION: absolute; BACKGROUND-COLOR: buttonface
}
</STYLE>
第二步:把如下代碼加入<body>區域中:
<STYLE>A.menuitem {
COLOR: menutext; TEXT-DECORATION: none
}
A.menuitem:hover {
COLOR: highlighttext; BACKGROUND-COLOR: highlight
}
DIV.contextmenu {
BORDER-RIGHT: 2px outset; BORDER-TOP: 2px outset; Z-INDEX: 999; VISIBILITY: hidden; BORDER-LEFT: 2px outset; BORDER-BOTTOM: 2px outset; POSITION: absolute; BACKGROUND-COLOR: buttonface
}</P><P></STYLE>
<SCRIPT language=JavaScript>
function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + yy + '年' + mm + '月</font>'); }
function Date_of_Today(){
var now = new Date();
var cl = '<font color="#ff0000">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + now.getDate() + '</font>'); }
function Day_of_Today(){
var day = new Array();
day[0] = "星期曰";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + day[now.getDay()] + '</font>'); }
function CurentTime(){
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;
var clock = hh+':';
if (mm < 10) clock += '0';
clock += mm+':';
if (ss < 10) clock += '0';
clock += ss;
return(clock); }
function refreshCalendarClock(){
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime(); }
var webUrl = webUrl;
document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td>');
document.write('<table id="CalendarClockFreeCode" border="0" cellpadding="0" cellspacing="0" width="60" height="70" ');
document.write('style="position:absolute;visibility:hidden" bgcolor="#eeeeee">');
document.write('<tr><td align="center"><font ');
document.write('style="cursor:hand;color:#ff0000;font-family:宋體;font-size:14pt;line-height:120%" ');
if (webUrl != 'netflower'){
document.write('</td></tr><tr><td align="center"><font ');
document.write('style="cursor:hand;color:#2000ff;font-family:宋體;font-size:9pt;line-height:110%" ');
}
document.write('</td></tr></table>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="61" bgcolor="#C0C0C0" height="70">');
document.write('<tr><td valign="top" width="100%" height="100%">');
document.write('<table border="1" cellpadding="0" cellspacing="0" width="58" bgcolor="#FEFEEF" height="67">');
document.write('<tr><td align="center" width="100%" height="100%" >');
document.write('<font id="calendarClock1" style="font-family:宋體;font-size:7pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock2" style="color:#ff0000;font-family:Arial;font-size:14pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock3" style="font-family:宋體;font-size:9pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock4" style="color:#100080;font-family:宋體;font-size:8pt;line-height:120%"><b> </b></font>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
setInterval('refreshCalendarClock()',1000);
</SCRIPT>
倒影時鍾:
第一步把下面的代碼加入<head> </head>之間
<Script Language="JavaScript">
<!-- Hiding
var ctimer;
function init(){
if (document.all){
tim2.style.left=tim1.style.posLeft;
tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;
settimes();
}
}
function settimes(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
if (hours<10)
hours="0"+hours;
if(mins<10)
mins="0"+mins;
if (secs<10)
secs="0"+secs;
tim1.innerHTML=hours+":"+mins+":"+secs
tim2.innerHTML=hours+":"+mins+":"+secs
ctimer=setTimeout('settimes()',960);
}
// -->
</Script><style type="text/css">
<!--
.time{
font-family : Comic Sans Ms;
font-size : 14pt;
font-weight : bold;
color: #00008D;
}
-->
</style>
第二步:把以下代碼加入<body> 區
<body onLoad="init()" bgcolor="#FFFFFF">
<Div Id="tim1" Style="position: absolute; width: 258; height: 26; top: 30; left: 215" class="time">
</Div>
<Div Id="tim2" Style="position:absolute; filter:flipv() alpha(opacity=20); font-style:italic; left: 695px; top: 50px" class="time">
</Div>
⑧ WORD2010版本,在桌面添加一個時鍾,怎麼做
先通過WORD製作一個時鍾,這個你要自己會
保存為html格式
桌面只用web桌面 自己鏈接位置 保存那個時鍾的html文件即可
⑨ 怎麼在電腦桌面上添加日歷和時鍾啊
在電腦桌面上添加日歷和時鍾的具體步驟如下:
我們需要准備的材料分別是:電腦、
1、首先我們打開開始菜單欄中的「控制面板」。