IE按钮点击。
本帖最后由 agohero 于 2014-5-7 13:22 编辑https://cas.hwabaotrust.com/cas/login?service=http%3A%2F%2Fwww.hwabaotrust.com%2FSSOIntegration%2F
“登录”按钮如何点击。 没人啊?? 网页中已经有这个代码了
看懂下面代码,就行了function loginSSO(type){
if(type == 1){
document.location.href = 'http://www.hwabaotrust.com/SSOIntegration/jsp/findPassword.jsp?timestamp='+new Date().getTime();
return;
}
//return;
var usernameVal = $.trim(document.getElementById("username").value);
if(usernameVal == "" || usernameVal == "身份证/护照/台胞证等"){
document.getElementById("username").value = '';
alert("请输入证件号!");
return;
}
if(usernameVal == "111111111" || usernameVal == "111111111"){
alert("证件号不能为【"+usernameVal+"】");
return;
}
if(usernameVal =="021002020000002" || usernameVal == "A0000202001"){
alert("证件号为【"+usernameVal+"】,不允许登录");
return;
}
if(document.getElementById("password").value==""){
alert("请输入密码!");
return;
}
if(document.getElementById("ssofjm").value==""){
alert("请输入验证码!");
return;
}
if(($.trim(usernameVal) != '350100100105723') && checkIdcard(usernameVal)){
document.getElementById("username").value = $.trim(usernameVal);
document.getElementById("isIDCard").value='1';
}else{
document.getElementById("isIDCard").value='0';
}
document.loginForm.action = '/cas/login';
document.loginForm.elements['operatorStr'].value = type;
document.loginForm.submit();
} 刚才回复怎么要审核
看懂下面的代码,你就能点击了
代码就在网页里function loginSSO(type){
if(type == 1){
document.location.href = 'http://www.hwabaotrust.com/SSOIntegration/jsp/findPassword.jsp?timestamp='+new Date().getTime();
return;
}
//return;
var usernameVal = $.trim(document.getElementById("username").value);
if(usernameVal == "" || usernameVal == "身份证/护照/台胞证等"){
document.getElementById("username").value = '';
alert("请输入证件号!");
return;
}
if(usernameVal == "111111111" || usernameVal == "111111111"){
alert("证件号不能为【"+usernameVal+"】");
return;
}
if(usernameVal =="021002020000002" || usernameVal == "A0000202001"){
alert("证件号为【"+usernameVal+"】,不允许登录");
return;
}
if(document.getElementById("password").value==""){
alert("请输入密码!");
return;
}
if(document.getElementById("ssofjm").value==""){
alert("请输入验证码!");
return;
}
if(($.trim(usernameVal) != '350100100105723') && checkIdcard(usernameVal)){
document.getElementById("username").value = $.trim(usernameVal);
document.getElementById("isIDCard").value='1';
}else{
document.getElementById("isIDCard").value='0';
}
document.loginForm.action = '/cas/login';
document.loginForm.elements['operatorStr'].value = type;
document.loginForm.submit();
} 回复 2# agohero
_IELinkClickByText($oIE,"登 录 ") $form=_IEFormGetObjByName($oIE,'loginForm')
_IEFormSubmit($form) 回复agohero
_IELinkClickByText($oIE,"登 录 ")
lin6051 发表于 2014-5-7 08:21 http://www.autoitx.com/images/common/back.gif
感谢。没想到用字符串就可以解决了。还以为“登录”是图片文件 $form=_IEFormGetObjByName($oIE,'loginForm')
_IEFormSubmit($form)
zxhou1 发表于 2014-5-7 10:13 http://www.autoitx.com/images/common/back.gif
谢谢虽然没用上,但是提供了另外一个思路
页:
[1]