好代码function ftest()
好代码{
好代码
var kk=0;
好代码
var kk2=0;
好代码kk
=document.all("aa").offsetLeft;
好代码kk2
=document.all("aa").offsetTop;
好代码document.all(
"Layer1").style.top=kk2+document.all("aa").offsetHeight;
好代码document.all(
"Layer1").style.left=kk;
好代码document.all(
"Layer1").style.width=document.getElementById("aa").style.width;
好代码document.all(
"Layer1").style.visibility = "visible";
好代码document.getElementById(
"caidn").rows(0).cells(0).innerHTML=document.getElementById("aa").value;
好代码}
好代码
function fClose()
好代码{
好代码document.all(
"Layer1").style.visibility = "hidden";
好代码}
好代码
function trOnMouseOver(trid) {
好代码document.all(
"caidn").bgColor="#cccc99";
好代码
//alert(document.getElementById("caidn").rows(0).cells(0).innerHTML);
好代码//
alert(document.all("caidn").rows(0).cells(0).innerHTML);
好代码
document.getElementById("aa").value=document.getElementById("caidn").rows(trid).cells(0).innerText;
好代码fClose();
好代码}
好代码
好代码
function trOnMouseOver2(trid) {
好代码alert(document.getElementById(
"ppp").rows(trid).cells(0).innerText);
好代码
//alert(document.getElementById("ppp").rows(0).cells(0).innerText);
好代码
}




<form name="form1" method="post" action="">
  <input name="aa" type="text" >

  <input type="button" name="test" value="按钮" onClick="ftest();">
  <input type="button" name="test2" value="按钮2" onClick="trOnMouseOver();">
</form>

<div >DD</td>
    </tr>
</table>

</div>
<table border="1" cellpadding="0" cellspacing="0" >DD</td>
    </tr>
</table>

相关文章: