VB程序设计人员都知道网页模拟按键的代码是
webbrowser1.document.getElementByName("提交按钮的name").click
找网页中的ID或者是name
可是这样的网页找不到,我该怎样做? 是一个QQ登陆页面
我只找到了QQ文本框和QQ密码文本框的name
登陆我没有找到,VB老鸟麻烦来帮帮忙找一下或者指导一下另一个方法
下面是网页源码:
------------------------------------------------------------------------------------
<!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 id="DocHead"><title>
-QQ用户登录-
</title><meta name="Keywords" content="-QQ用户登录-,电脑访问-QQ用户登录-,wap浏览器" /><meta name="Description" content="wap浏览器访问-QQ用户登录-,用电脑访问-QQ用户登录-,机客wap浏览器提供wap网站在线访问" />
<script type="text/javascript">
var PageName="WAPBrowser.aspx?url=";
var CurrentUrl=" http://bj9.wap.sjkx.com/forward.jsp?station=unicom";
var Title="-QQ用户登录-";
</script>
<script type="text/javascript" src="js/_E_.js"></script>
<style type="text/css">
html{
scrollbar-face-color: #E6F7D7;
scrollbar-shadow-color: #94E038;
scrollbar-highlight-color:#E6F7D7;
scrollbar-3dlight-color: #94E038;
scrollbar-darkshadow-color: #E6F7D7;
scrollbar-track-color:#E6F7D7;
overflow-x:hidden;
}
body{
margin-left:2px;
margin-top:2px;
font-size:14px;
}
a:link,a:visited,a:active{color:#0060A6;text-decoration:none;}
a:hover{color:#CC0000;text-decoration:none;}
. promess{font-size:12px;color:#FF8102;}
.alertinfo{
font-size:12px;padding:3px;border: 1px solid #FF6600; position: absolute; width: 316px; height: 36px; z-index: 1; left: 0px; top: 0px; background-color: #FFEBD7;
line-height:150%;
filter:alpha(opacity=80);
font-family:宋体;
-moz-opacity:0.8;
opacity:0.8;
}
</style>
<style type="text/css" id="Current">
</style>
<style type="text/css" id="UserChangeLink_">
</style>
<script type="text/javascript" src="js/wb.aspx"></script>
<script type="text/javascript">
function displayaler(text){
var o=document.getElementById("alertinfo");
o.innerHTML=text;
o.style.display='';
closealer();
}
function closealer(){
var o=document.getElementById("alertinfo");
setTimeout(function(){o.style.display='none'},5000);
}
</script>
</head>
<body >
<div >
<div id="WapText" class="hmk" ><head><meta http-equiv="Cache-Control" content="max-age=0" /><meta http-equiv="Cache-Control" content="no-cache,must-revalidate" /><meta http-equiv="Pragma" content="no-cache" /></head><card title="-QQ用户登录-"><p>
5.7亿注册用户,最大交友社区!<br />
输入QQ号码登录<br />
QQ号码:<br /><input name="qq" type="text" emptyok="true" format="*N" value="" /><br />
QQ密码:<br /><input name="pwd" type="password" emptyok="true" value="" /><br />
<anchor><a href="javascript:void(0)" onclick="fun(" http://bj9.wap.sjkx.com/qqchat/qqchat/handle_login.jsp;jsessionid=abccKOg_5bVXTh--Gk_ss?t=0&push_1234=1&r=4610","u|p|q_status|r|tt|tvk","$qq|$pwd|10|1257320878594|1257320878594|F9B3CA303EEDA42FBD59FDF7E4FB04D6",";,0);return false;">登录
</a></anchor><anchor><a href="javascript:void(0)" onclick="fun(" http://bj9.wap.sjkx.com/qqchat/qqchat/handle_login.jsp;jsessionid=abccKOg_5bVXTh--Gk_ss?t=0&push_1234=1&r=4610","u|p|q_status|r|tt|tvk","$qq|$pwd|40|1257320878594|1257320878594|F9B3CA303EEDA42FBD59FDF7E4FB04D6","post",1);return false;">隐身登录
</a></anchor><br />
---------<br /></p><p></p><p>
小Q报时(15:47)<br /><a href="WAPBrowser.aspx?url=http%3a%2f%2fidc7.wap.sjkx.com%2funicom%2fqq.jsp%3fstation%3dunicom%26PT%3d0%3a12345" title="确定">返回上级</a><br /><a href="WAPBrowser.aspx?url=http%3a%2f%2fwap.uni-info.com.cn" title="确定">返回互动视界</a><br /></p></card><br/></div>
<div id="JsControl"></div>
<div class="alertinfo" id="alertinfo" onclick="this.style.display='none'" ></div>
<div ><script language="javascript" src="/js/count.js"></script></div>
<div ><a href=" http://w.159.com/Index.aspx?url= http://bj9.wap.sjkx.com/forward.jsp?station=unicom" target="_blank"><font color=red>wap浏览器首页</font></a></div>
<div>
</body>
</html>