网页源码如下:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>MainHead</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="mainhead.aspx" id="Form1">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwtMTA5NzQ4MTIzMDt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDM+O2k8NT47aTwxNT47aTwxNz47PjtsPHQ8cDxwPGw8SW1hZ2VVcmw7VmlzaWJsZTs+O2w8Li4vaW1nL25vdGZpbmlzaC5KUEc7bzx0Pjs+PjtwPGw8b25jbGljazs+O2w8cGFyZW50LmJmcmFtZS5sb2NhdGlvbj0nZGVub2NsLmFzcHgnOz4+Pjs7Pjt0PHA8cDxsPEltYWdlVXJsO1Zpc2libGU7PjtsPC4uL2ltZy9vcGNhcmQuSlBHO288dD47Pj47cDxsPG9uY2xpY2s7PjtsPHBhcmVudC5iZnJhbWUubG9jYXRpb249J2RldmljZW9wZXJhdG9yLmFzcHgnOz4+Pjs7Pjt0PHA8cDxsPEltYWdlVXJsO1Zpc2libGU7PjtsPC4uL2ltZy9vcGhpcy5KUEc7bzx0Pjs+PjtwPGw8b25jbGljazs+O2w8cGFyZW50LmJmcmFtZS5sb2NhdGlvbj0ncnBvcGhpc2RldGFpbC5hc3B4Jzs+Pj47Oz47dDxwPDtwPGw8b25jbGljazs+O2w8cGFyZW50LmxvY2F0aW9uPScuLi9pbmRleC5hc3B4Jzs+Pj47Oz47dDxwPDtwPGw8b25jbGljazs+O2w8cGFyZW50LmJmcmFtZS5sb2NhdGlvbj0nY2hhbmdlcHcuYXNweCc7Pj4+Ozs+Oz4+Oz4+O2w8SW1hZ2VCdXR0b24xO0ltYWdlQnV0dG9uMjtJbWFnZUJ1dHRvbjM7aW1nSG9tZTs+PmAE8PZrYUM0IHkqLNTj2Vuz18zb" />
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
<table height="64" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td style="WIDTH: 252px" width="252" background="../img/topleft.JPG" vAlign="bottom"
align="center"><FONT face="宋体"></FONT></td>
<td background="../img/topcenter.JPG">
<table style="HEIGHT: 40px" height="40" cellSpacing="0" cellPadding="0" width="100%">
<tr>
<td style="HEIGHT: 62px" align="center" width="12%"><input type="image" name="ImageButton1" id="ImageButton1" onclick="parent.bframe.location='denocl.aspx'" src="../img/notfinish.JPG" alt="" border="0" /></td>
<td style="HEIGHT: 62px" align="center" width="12%"><input type="image" name="ImageButton2" id="ImageButton2" onclick="parent.bframe.location='deviceoperator.aspx'" src="../img/opcard.JPG" alt="" border="0" /></td>
<td style="HEIGHT: 62px" align="center" width="12%"><input type="image" name="ImageButton3" id="ImageButton3" onclick="parent.bframe.location='rpophisdetail.aspx'" src="../img/ophis.JPG" alt="" border="0" /></td>
<td style="HEIGHT: 62px" align="center" width="12%"></td>
<td style="HEIGHT: 62px" align="center" width="12%"></td>
<td style="HEIGHT: 62px" align="center" width="12%"></td>
<td style="HEIGHT: 62px" align="center" width="12%"></td>
<td style="HEIGHT: 62px" align="center" width="8%">
<input type="image" name="imgHome" id="imgHome" onclick="parent.location='../index.aspx'" src="../img/home.JPG" alt="" border="0" /><a style="FONT-SIZE: smaller" href="http://localhost/insopercard/index.aspx" target="_parent"></a></td>
<TD style="HEIGHT: 62px" align="right" width="8%"><a id="lbChangePw" title="修改密码" onclick="parent.bframe.location='changepw.aspx'" href="javascript:__doPostBack('lbChangePw','')" style="color:Red;font-size:Smaller;">修改<br>密码</a></TD>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
我使用的下面几种方法进行点击,为什么没有反应呀?请各位高手指点一下,谢谢!
第1种:_IEImgClick($oIE, "ImageButton2", "name")
_IEGetObjByName($oIE, "ImageButton2")
$oIE.document.parentWindow.eval("parent.bframe.location='deviceoperator.aspx'")
第2种:$oForm = _IEFormGetObjByName($oIE, "Form1")
_IEImgClick($oForm, "ImageButton2", "name")
_IEGetObjByName($oForm, "ImageButton2")
$oForm.document.parentWindow.eval("parent.bframe.location='deviceoperator.aspx'")
|