<td><input name="bstime" type="text" id="bstime" value="<%=(Recordset1.Fields.Item("bstime").Value)%>" onclick="func1(this.value)" onpropertychange="func2(this.value)"/></td>
<SCRIPT LANGUAGE="JavaScript">
function func1(aa){
document.getElementsByName("a")[0].value=aa;}
function func2(bb){
document.getElementsByName("a")[0].value=bb;
document.getElementsByName("b")[0].value=bb;
document.getElementsByName("c")[0].value=document.getElementsByName("bsid")[0].value;}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function func1(aa){
document.getElementsByName("a")[0].value=aa;}
function func2(bb){
document.getElementsByName("a")[0].value=bb;
document.getElementsByName("b")[0].value=bb;
document.getElementsByName("c")[0].value=document.getElementsByName("bsid")[0].value;}
</SCRIPT>
var input=document.getElementsByTagName("input");input[0].value=child[0].innerText;
input[1].value=document.getElementById("bstime").value;
input[2].value=document.getElementById("bsid").value;
<script>
var child=document.getElementsByTagName("td");
var input=document.getElementsByTagName("input");input[0].value=child[0].innerText;
input[1].value=document.getElementById("bstime").value;
input[2].value=document.getElementById("bsid").value;</script>
<script>
function aa(){
var child=document.getElementsByTagName("td");
var input=document.getElementsByTagName("input");input[0].value=child[0].innerText;
input[1].value=document.getElementById("bstime").value;
input[2].value=document.getElementById("bsid").value;
}
</script>
----------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Connections/soccersql.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRowsSet Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_soccersql_STRING
Recordset1_cmd.CommandText = "SELECT * FROM dbo.bs"
Recordset1_cmd.Prepared = trueSet Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__indexRepeat1__numRows = 10
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!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=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function getData(obj){
var row = obj.parentElement.parentElement;
document.form1.a.value = row.cells[0].innerHTML;
document.form1.b.value = obj.value;
document.form1.c.value = row.cells[2].firstChild.value;
}
</script>
</head><body>
<form id="form1" name="form1" method="post" action="">
<input name="a" type="text" id="a" /> <input name="b" type="text" id="b" />
<input name="c" type="text" id="c" />
<br />
<br />
<br />
<br />
<br />
<table width="150" border="1">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td onclick="document.form1.a.value=this.innerHTML;"><%=(Recordset1.Fields.Item("bs").Value)%></td>
<td><input name="bstime" type="text" id="bstime" onchange="getData(this);" value="<%=(Recordset1.Fields.Item("bstime").Value)%>"/></td>
<td><input type="checkbox" name="bsid" value="<%=(Recordset1.Fields.Item("bsid").Value)%>" /></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table></form>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>