2008-11-14 22:52 nelsonoem
<!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" c />
<title>無標題文件</title>
<script language="JavaScript">
function ReshinqtyTotal() {

RightNow=document.all.Shinqty_Price.value;
qty1=document.all.Shinqty_Qty.value;
Shinqtytotal.innerHTML = document.all.Shinqty_Total.value = eval(RightNow.getHours()*60) + eval(qty1);

}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
  <label>
  輸入時間:
  <input name="Shinqty_Price" type="text" class="New_Boxadd3A" id="Shinqty_Price" >
  <br />
  輸入數字:
  <input name="Shinqty_Qty" type="text" class="New_Boxadd3A" id="Shinqty_Qty" >
  <br />
  <input name="Shinqty_Total" type="hidden" id="Shinqty_Total">
  </label>
  <span id="Shinqtytotal" class="Back13">0</span>
</form>

不知到什麼錯誤,時間分鐘不能加減,請大家幫幫忙

頁: [1]
查看完整版本: 時間分鐘加減問題求助


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.