javascript如何实现一个table中的两个字段计算
例如:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
<tr>
<td><table id="tb" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
<tr >
<td class="td_center" width="10%" nowrap>薪资项目</td>
<td class="td_center" width="10%" nowrap>计算金额</td>
<td class="td_center" width="10%" nowrap>调整金额</td>
<td class="td_center" width="10%" nowrap>合计</td>
</tr>
<tr class="tr2" onMouseOut="this.style.backgroundColor='';this.style.color=''"
onMouseOver="this.style.backgroundColor='#E2FFFD'">
<td align="center">基本工资</td>
<td align="center">1000</td>
<td align="center"><input type="text"></td>
<td align="center"><input type="text" readonly></td>
</tr>
</tabl
相关问答:
我也来一个趣味javascript:
打开以下html文件,依次按下G,L,C三个键,就会有奇迹出现!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ......
怎么才能判断键盘是否被按下和松开。。。。。不知道怎么判断。。。谁能告诉我下吗。。。。谢谢
onkeydown和onkeyup事件
引用
onkeydown和onkeyup事件
自动触发这两个事件
onkeydown 按下
onkeyup 松开
......
void CWEHelperDlg::OnOK(){
CString code;
//调用VBSCRIPT,能弹出消息框,也能正确返回 hello
code = "function main()\r\n\tMsgBox \"ok\"\r\n\tmain=\"hello\"\r\nend functio ......
JScript code:
<a href="#" onclick="numsort()">sort by price</a>
<ul id="list">
<li><span class="n">green day</span> &l ......