<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>test</title>
<!--<script type="text/javascript" src="<s:url value="/include/js/ext-lang-zh_CN.js"/>" charset="utf-8"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />-->
<script type="text/javascript">
function startTime(){
var today=new Date();
var week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var year=today.getFullYear();
var month=today.getMonth()+1;
var date=today.getDate();
var day=today.getDay();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
h=checkTime(h);
m=checkTime(m);
s=checkTime(s);
document.getElementById('time').innerHTML=" "+year+"年"+month+"月"+date+"日 "+week[day]+" "+h+":"+m+":"+s+" ";
t=setTimeout('startTime()',500);
}
function checkTime(i){
if (i<10)
{i="0" + i}
return i;
}
</script>
</head>
<!--这是动态时钟-->
<body οnlοad="startTime()">
<div>
<label id="time"></label>
</div>
<!--这是人型时钟-->
<div >
<!--这是我自己修改的-->
<embed bgcolor="#00FF33" height="40" width="100" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.swf"
type="application/x-shockwave-flash" ></embed>
</div>
<!--这是在网上重新查找的-->
<div height="120" width="150" align="center">
<embed height="60" width="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.swf"
quality="high" autostart="1"
wmode="transparent" />
</div>
<!--这是小老鼠代码,该出代码是转载自http://blog.csdn.net/u014786004/article/details/52583866,经过修正后能运行-->
<object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/widgets/hamster/hamster.swf?up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4&up_foodColor=cba920&up_wheelCenterColor=E4EB2F&up_tailColor=E6DEBE&"
width="280" height="260">
<param name="movie" value="http://cdn.abowman.com/widgets/hamster/hamster.swf?up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4&up_foodColor=cba920&up_wheelCenterColor=E4EB2E&up_tailColor=E6DEBE&">
<param name="AllowScriptAccess" value="always">
<param name="wmode" value="opaque">
</object>
</body>
</html>