<html>
<head>
<title>快速定位</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
body{font-size:12px}
td{font-size:12px}
</style>
<SCRIPT langague="javascript">
var row_num=1;
function winclose(){
window.close();
}
function pos(){
var parentWin=window.dialogArguments;
//parentWin.document.all("input1").value="dfasfdsf";
var ptable=parentWin.document.all("tabA");
var tr=ptable.rows;
for(var row_num=1;row_num<tr.length;row_num++){
if((tr[row_num].cells[0].children[1].innerText==document.all("id").value)&&(tr[row_num].cells[5].children[0].innerText==document.all("procdure").value)){
alert("找到了!");
parentWin.tronclick(tr[row_num]);
tr[row_num].scrollIntoView()
}
}
}
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" style="overflow-x:hidden;overflow-y:hidden">
<table width="380" height="102" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td height="24" align="center" bgcolor="#E1F0D2" colspan="6" style="font-size:12px">快速定位</td>
</tr>
<tr>
<td width="71" height="23" bgcolor="#f5f5f5"> 序号 </td>
<td width="306" bgcolor="#ffffff"> <input type="text" name="id"></td>
</tr>
<tr>
<td height="24" bgcolor="#f5f5f5"> 品名</td>
<td bgcolor="#ffffff"><input type="text" name="procdure"></td>
</tr>
<tr>
<td colspan="2" >
<div align="center">
<input type="button" name="Submit" value="定 位" onclick="pos()">
<input type="button" name="Submit" value="关 闭" onclick="winclose()">
</div></td>
</tr>
</table>
</body>
</html>
posted on 2006-03-15 13:14
有猫相伴的日子 阅读(465)
评论(0) 编辑 收藏 所属分类:
javascript