自己DIY一个简单的邮箱登陆页面

最近经常登陆邮箱,虽然浏览器能够记住登陆的用户名和密码,但是每次还要手动打开浏览器,感觉有些许麻烦,所以写了一个自动登录到我的yahoo邮箱的一个简单页面,在这里和大家一同分享一下。
以yahoo邮箱为例:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的yahoo邮箱自动登录了</title>
[color=red]<style type="text/css">
<!--
body {
background-image: url(file:///D|/My%20Documents/My%0Pictures/bz6.jpg);
}
-->
</style[/color]> </head>

<body>
<form id="loginform" name="loginform" method="post" action="https://edit.bjs.yahoo.com/config/login">

<div align="center">
<table width="342" height="119" border="1">
<tr>
<td width="87" height="41">用户名:</td>
<td width="239"><input type="text" value="wzhiju@yahoo.cn" name="login" class="inp" id="emailinput" /></td>
</tr>
<tr>
<td>密码:</td>
<td><label>
<input type="text" value="******" name="passwd" id="passinput"/>
</label></td>
</tr>
<tr>
<td><input name=".intl" value="cn" type="hidden" /></td>
<input value="ym" name=".src" type="hidden" />
<input type="hidden" name=".cnrid" value="ymhp_20000" />
<input type=hidden name=".challenge" value="G0d5u3x80ekFdiR8Y96wOT1A2Csp">
<td><input type=hidden name=.done value="http://mail.cn.yahoo.com/ycn_setcookie_inset.html?.done=http%3A%2F%2Fmail.cn.yahoo.com%2Finset.html%3Frr%3D1357079689" </td>
</tr>
</table>
</div>
</form>

<div align="center">
<script>
loginform.submit();

</script>
</div>
</body>
</html>

其中红色部分自己动手加了一个图片,位于D|/MyDocuments/MyPictures 位置,table内写的是自己的yahoo邮箱的用户名和密码,其中大家要注意控件的名称要和yahoo登录界面的一致,同时form的action位置 为action="https://edit.bjs.yahoo.com/config/login" 也是yahoo登陆后跳转的地址。在做其他邮箱的自动登录时,要求一样。
保存为html页面后,双击便能跳转到自己的收件箱位置。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值