<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>指定位置的时钟</title>
</head>
<body bgcolor="#fef4d9" onload=display()>
<span id=liveclock style=position:absolute;left:100px;top:62px; width: 109px; height: 15px>
</span>
<script language=javascript>
<!--
function display()
{
if(!document.layers&&!document.all)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM"
if(hours>12)
{
dn="PM"
hours=hours-12
}
if(hours==0)
hours=12
if(minutes<=9)
minutes="0"+minutes
if(seconds<=9)
seconds="0"+seconds
//改变字体
myclock="<font size='10' face='Arial' color=#ff00ff><b><font size='5' color=#66ff00>Current time is:</font></br>"+hours+":"+minutes+":"+seconds+" "+dn+"</b></font>"
if(document.layers)
{
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if(document.all)
liveclock.innerHTML=myclock
setTimeout("display()",1000)
}
//-->
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
50个js经典案例
共273个文件
mid:163个
htm:59个
jpg:28个
4星 · 超过85%的资源 需积分: 50 323 下载量 110 浏览量
2015-12-19
21:25:58
上传
评论 25
收藏 5.7MB ZIP 举报
温馨提示
50个常用的js的案例,便于初学者更好的学习js
资源推荐
资源详情
资源评论
收起资源包目录
50个js经典案例 (273个子文件)
house.gif 16KB
cat.gif 6KB
start.gif 3KB
start.gif 3KB
start.gif 3KB
star.gif 2KB
bg.gif 1KB
prev.gif 858B
next.gif 856B
1.GIF 855B
menu_high.gif 840B
menu_norm.gif 840B
alien.gif 525B
impact1.gif 513B
impact2.gif 313B
bullet.gif 55B
qqmenu.htm 24KB
Tetris.htm 20KB
online.htm 18KB
index.htm 13KB
alien.htm 12KB
mouseclock.htm 10KB
calc.htm 9KB
menu.htm 9KB
calender.htm 8KB
searchsource.htm 8KB
mousefire.htm 8KB
年龄提示器.htm 7KB
scrollmenu.htm 7KB
audio.htm 6KB
表针式时钟.htm 5KB
lattice.htm 5KB
lightmenu.htm 5KB
树状菜单.htm 5KB
rain.htm 5KB
图片的爆破效果.htm 5KB
nebula.htm 5KB
调用其他搜索引擎.htm 4KB
newmenu.htm 4KB
game.htm 4KB
game.htm 4KB
动态弹出式卷轴菜单.htm 4KB
picswing.htm 3KB
dance.htm 3KB
test.htm 3KB
lighttext.htm 3KB
hintlink.htm 3KB
twinklestars.htm 3KB
hotkey.htm 3KB
starpage.htm 3KB
bubble.htm 3KB
Windows模拟鼠标轨迹.htm 3KB
words.htm 2KB
speed.htm 2KB
twingle.htm 2KB
统计网友来访次数.htm 2KB
filelastmod.htm 2KB
filelastmod.htm 2KB
页面更新跟踪器.htm 2KB
自动将访问者的信息Email至信箱.htm 2KB
lightpic.htm 1KB
pictorqu.htm 1KB
encode.htm 1KB
homefavor.htm 1KB
DynamicAudioButton.htm 1KB
火焰文字.htm 1KB
paomadeng2.htm 1KB
paomadeng.htm 1KB
带按钮开关的Form时钟.htm 1KB
站内搜索引擎.htm 1KB
paomadeng3.htm 604B
norright.htm 402B
betterright.htm 196B
frames.htm 186B
show.htm 73B
date.html 1KB
date-1.html 1KB
0003.jpg 650KB
0001.jpg 171KB
0003.jpg 101KB
0007.jpg 95KB
0006.jpg 89KB
0010.jpg 87KB
0008.jpg 82KB
0004.jpg 80KB
0007.jpg 79KB
0005.jpg 77KB
0009.jpg 69KB
0001.jpg 66KB
0012.jpg 66KB
0016.jpg 61KB
0005.jpg 60KB
0002.jpg 60KB
0014.jpg 59KB
0011.jpg 56KB
0010.jpg 54KB
0004.jpg 53KB
0002.jpg 50KB
0013.jpg 48KB
0009.jpg 47KB
共 273 条
- 1
- 2
- 3
资源评论
- Hey!北北2016-10-12还行吧,初学者可以看看
- khbbl2016-12-20不怎么行,只是有部分可以达到所描述的要求
qq_33435277
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功