windows.moveBy()函数使用方法示例

来源:互联网 发布:倒计时软件桌面 编辑:程序博客网 时间:2024/05/17 07:09
2006年01月07日 21:08:00

(一).示例图片效果

(二).代码

>html<
>head<
>title/title<
>script laguage="javascript"<
>!--
function showtime()
{
mytime=new Date();
mytime=mytime.getHours()+":"+mytime.getMinutes()+":"+mytime.getSeconds();
document.myform.mytext.value=mytime;
window.clearTimeout(mytimeout);
var mytimeout=window.setTimeout("showtime()",1000)
}

//--<
>/script<
>/head<
>body bgcolor="#FFFFFF" text="#000000"<
>form name="myform"<
>table border=0 align=center<
>tr<
>td<>input type=text name=mytext size=20 style="background-color:lightgreen;color:blue"<>/td<
>td<>input type=button value="设置时间" onclick=window.setTimeout("showtime()",1000) style="background-color:lightblue;"<>/td<
>/tr<
>/table<
>/form<
>/body<
>/html<



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=573120


原创粉丝点击