|
哪位朋友能给指点一下, 如何用VBA代码登陆 163的WEB邮箱?
用户名和密码可以输入, 就是不知道怎样点那个登陆按钮. 这个按钮我没找到name, 也没id....不知道怎么做了, 哪位朋友可以帮下小弟?
以下是mail.163.com 源代码的一部份:
<form id="login163" method="post" name="login163" action="" onSubmit="return fLoginFormSubmit();">
<input name="verifycookie" type="hidden" value="1" />
<input type="hidden" name="style" id="txtStyle" value="34" />
<input type="hidden" id="product" name="product" value="mail163" />
<input type="hidden" id="savelogin" name="savelogin" value="" />
<input type="hidden" id="url2" name="url2" value="http://mail.163.com/errorpage/err_163.htm">
<div id="uName" class="fi">
<label class="lb for for-1">用户名</label>
<label class="lb for for-2 for-3">手机号</label>
<input id="idInput" tabindex="1" class="ipt-t" type="text" name="username" onFocus="fEvent('focus',this)" onBlur="fCheckAccount(this);fEvent('blur',this)" onMouseOver="fEvent('mouseover',this)" onMouseOut="fEvent('mouseout',this)" maxlength="50"/>
<span class="domain">@163.com</span>
</div>
<div class="fi">
<label class="lb">密 码</label>
<input id="pwdInput" tabindex="2" class="ipt-t" type="password" name="password" onMouseOver="fEvent('mouseover',this)" onFocus="fEvent('focus',this)" onBlur="fEvent('blur',this)" onMouseOut="fEvent('mouseout',this)"/>
<a class="forget" href="http://reg.163.com/RecoverPasswd1.shtml?from=mail163" target="_blank" title="找回密码" tabindex="8">忘记密码了?</a>
</div>
<div class="fi for for-1">
<label class="lb">版 本</label>
<select tabindex="3" name="selType" id="selType">
<option value="-1" selected="selected"> 默 认</option>
<option value="js35"> 极速 3.5</option>
<option value="jy"> 简约 3.0</option>
</select>
</div>
<div class="fi fi-nolb options for for-1">
<label for="remUsername" onMouseOver="document.getElementById('autoLoginDiv').style.display=''" onMouseOut="document.getElementById('autoLoginDiv').style.display='none'"><input class="ipt-c" tabindex="4" name="remUser" type="checkbox" id="remUsername" />两周内自动登录</label>
<a class="autologin" href="http://help.163.com/special/00752CLD/163mail_zddl.html" target="_blank" title="什么是自动登录">什么是自动登录</a>
<label for="secure"><input class="ipt-c" tabindex="5" name="secure" type="checkbox" id="secure" checked="checked" />SSL安全登录</label>
<div style="position:absolute;z-index:9; width:180px; height:35px;*height:36px; background-color:#ffefa4; border:1px #FF9900 solid; left: 47px; top: 22px; text-align:left; padding:5px; line-height:150%; color:#dc6800; display:none" id="autoLoginDiv">为了您的信息安全,请不要在网吧或公用电脑上使用此功能!</div>
</div>
<div class="fi fi-nolb">
<button class="btn btn-login" onMouseOver="this.className+=' btn-login-hover'" onMouseDown="this.className+=' btn-login-active'" onMouseOut="this.className='btn btn-login'" onMouseUp="this.className='btn btn-login'" tabindex="6" type="submit" onClick="if(window.location.href.indexOf('#return') == -1){setCookie('ntes_mail_firstpage','normal');}saveLoginType();">登 录</button>
<a class="btn btn-reg for for-1" tabindex="8" href="http://reg.email.163.com/mailregAll/reg0.jsp?from=163mail_right" target="_blank">注 册</a>
<button class="btn btn-regsjy for for-2" tabindex="8" type="button" onClick="fShowPhoneReg(true);">还没设置手机号登录?</button>
</div>
</form>
[ 本帖最后由 lxlzmh2002 于 2011-5-15 14:06 编辑 ] |
|