日期:2014-05-16 浏览次数:20429 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
body{ margin:100px; padding:0px; font-size:12px; color:#000; }
.div1 { background:#ccc; width:110px; height:22px; line-height:22px; color:#000; float:left; }
.input { border:none; background:none; color:#000; width:30px; height:22px; text-align:center; line-height:22px; }
</style>
<script>
function up(){
var h=document.getElementById("hour")
h.value=parseFloat(h.value)+parseFloat(1)
}
function down(){
var h=document.getElementById("hour")
h.value=parseFloat(h.value)-parseFloat(1)
}
</script>
</head>
<body>
<div class="div1">
<input type="text" id="hour" name="hour" class="input" maxlength="2" value="1"/>:
<input type="text" id="minute" name="minute" class="input" maxlength="2" value="12" />:
<input type="text" id="second" name="second" class="input" maxlength="2" value="50" />
</div>
<div style="width:12px; float:left;background:#ccc;">
<div onclick="up()" id="up" style="float:left;"><img src="http://img.bbs.csdn.net/upload/201310/30/1383146222_390274.gif" width="12" height="11" /></div>
<div onclick="down()" style="float:left;"><img src="http://img.bbs.csdn.net/upload/201310/30/1383146234_136108.gif" width="12" height="11" /></div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
body{ margin:100px; padding:0px; font-size:12px; color:#000; }
.div1 { background:#ccc; width:110px; height:22px; line-height:22px;&