电子时钟及旋转字体

  • Z7_306628
    了解作者
  • 8.9KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 18:05
    上传日期
javascript制作的电子时钟及旋转字体
动态时间.rar
  • 动态时间
  • T2.bmp
    1.4KB
  • T1.bmp
    1.4KB
  • T8.bmp
    1.4KB
  • Und.html
    2.5KB
  • T4.bmp
    1.4KB
  • TPM.bmp
    1.4KB
  • T5.bmp
    1.4KB
  • 欢迎页面.html
    965B
  • TAM.bmp
    1.4KB
  • T9.bmp
    1.4KB
  • T7.bmp
    1.4KB
  • Thumbs.db
    17.5KB
  • T0.bmp
    1.4KB
  • T..bmp
    1.3KB
  • Tnull.bmp
    1.4KB
  • T6.bmp
    1.4KB
  • T3.bmp
    1.4KB
内容介绍
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>图片型系统当前时间</title> </head> <style type="text/css"> body:center; </style> <body> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var dn; c1 = new Image(); c1.src = "T1.bmp"; c2 = new Image(); c2.src = "T2.bmp"; c3 = new Image(); c3.src = "T3.bmp"; c4 = new Image(); c4.src = "T4.bmp"; c5 = new Image(); c5.src = "T5.bmp"; c6 = new Image(); c6.src = "T6.bmp"; c7 = new Image(); c7.src = "T7.bmp"; c8 = new Image(); c8.src = "T8.bmp"; c9 = new Image(); c9.src = "T9.bmp"; c0 = new Image(); c0.src = "T0.bmp"; cb = new Image(); cb.src = "Tnull.bmp"; cam = new Image(); cam.src = "TAM.bmp"; cpm = new Image(); cpm.src = "TPM.bmp"; function extract(h,m,s,type) { if (!document.images) return; if (h <= 9) { document.images.a.src = cb.src; document.images.b.src = eval("c"+h+".src"); } else { document.images.a.src = eval("c"+Math.floor(h/10)+".src"); document.images.b.src = eval("c"+(h%10)+".src"); } if (m <= 9) { document.images.d.src = c0.src; document.images.e.src = eval("c"+m+".src"); } else { document.images.d.src = eval("c"+Math.floor(m/10)+".src"); document.images.e.src = eval("c"+(m%10)+".src"); } if (s <= 9) { document.g.src = c0.src; document.images.h.src = eval("c"+s+".src"); } else { document.images.g.src = eval("c"+Math.floor(s/10)+".src"); document.images.h.src = eval("c"+(s%10)+".src"); } //判断是否为早上 if (dn == "AM") document.j.src = cam.src; else document.images.j.src = cpm.src; } function show3() { if (!document.images) return; var Digital = new Date(); var hours = Digital.getHours(); var minutes = Digital.getMinutes(); var seconds = Digital.getSeconds(); dn = "AM"; if ((hours >= 12) && (minutes >= 1) || (hours >= 13)) { dn = "PM"; hours = hours-12; } if (hours == 0) hours = 12; extract(hours, minutes, seconds, dn); setTimeout("show3()", 1000); } document.write('') document.write('') document.write('') document.write('') document.write('') document.write('') document.write('') document.write('') document.write('') show3() // End --> </script> </body> </html>
评论
    相关推荐