① 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、首先我们打开开始菜单栏中的“控制面板”。