< script language = " javascript " >
ฟังก์ชัน startcalc() {
ช่วง = setinterval ( " calc() " , 1 ) ;
} {
calc() ฟังก์ชันหนึ่ง = document.autosumform.target.value ;
2 = document.autosumform.sumassess.value ;
document.autosumform.gap.value = ( 2 * 1 ) - ( * 1 ) ;
} {
stopcalc() ฟังก์ชัน clearinterval ( ช่วงเวลา ) ;
}
< / script >
< div style = " ความกว้าง : 200px ; ข้อความชิด : ศูนย์ ; " >
< ชื่อ = " รูปแบบ autosumform " >
< ตารางความกว้าง = " แต่ " ชายแดน = " 0 " >
< TR > < TD > < DIV ALIGN = " left " > เป้าหมาย < / DIV > < / TD >
< td > < DIV ALIGN = " left " > & nbsp ; & nbsp ; < / DIV > < / sumassess td >
< td > < DIV ALIGN = " left " > & nbsp ; & nbsp ; ช่องว่าง < / DIV > < / TD >
< / TR > < TR > < TD
ความกว้าง = " 5 " >
< DIV ALIGN = " left " >
< ใส่ class = " ใช่ " พิมพ์ชื่อข้อความ = = " เป้าหมาย " ค่า = " " onfocus = " startcalc() ; " onblur = " stopcalc() ; " >
< / DIV > < / TD >
< TD ความกว้าง = " 5 " > < DIV ALIGN = " left " > -
< ใส่ class = " ใช่ " ประเภท = ข้อความ = " ชื่อ sumassess " ค่า = " " onfocus = " startcalc() ; " onblur = " stopcalc() ; " >
< / DIV > < / TD >
< TD ความกว้าง = " 5 " > < DIV ALIGN = " left " > =
< ใส่ class = " ใช่ " ประเภท = ข้อความชื่อ = " ช่องว่าง " >
< / DIV > < / TD >
การแปล กรุณารอสักครู่..
