蜗牛—JavaScript学习之仿网易邮箱注册页面

本文通过JavaScript详细讲解如何仿写网易邮箱的注册页面,涵盖表单验证、事件处理及交互效果,适合初级到中级JavaScript开发者进阶学习。
摘要由CSDN通过智能技术生成
<!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=utf-8" />
<title></title>
<style type="text/css">
body { font:12px/25px 宋体; color:#333; background:#d4e8f3; }
ul,li,dl,dt,dd,input { margin:0; padding:0; }
ul { list-style:none; }
#mail { margin:20px auto; width:646px; }
#mail .menu { float:left; margin:20px 0; width:200px; }
#mail .menu ul li { height:101px; background-image:url(images/mail_bg.gif); cursor:pointer; }
#mail .menu ul li.mail163 { background-position:0 0; }
#mail .menu ul li.mail126 { background-position:0 -101px; }
#mail .menu ul li.mailyeah { background-position:0 -202px; }
#mail .menu ul li.mail163current { background-position:-200px 0; }
#mail .menu ul li.mail126current { background-position:-200px -101px; }
#mail .menu ul li.mailyeahcurrent { background-position:-200px -202px; }
#login { float:left; width:446px; height:337px; background:url(images/login_bg.gif) no-repeat; }
#login .title { height:30px; background-image:url(images/title_bg.gif); m
163邮箱的js文件,值得研究! var gContentContainer="divMain"; var gAppName=""; var gVersion=""; var gErrorInfo=""; var gStatus_Ok="S_OK"; var gLogoutUrl="http://www.163.com"; var gMaxThumbSize=3000000; var gMinThumbSize=0; var gIsGetThumb=false; var gUseActivex=true; var gActivexLastVerNo=[1003,1003]; var gUpdateNoTips=false; var gTitle="网易电子邮箱 - "+(location.host.toLowerCase().indexOf("vip.163.com")>-1?"新管家版":"极速3.5"); var gSetLabNew="19"; var gModuleConfig={outLink:{cache:true,request:false,text:"外部链接",tag:0},welcome:{cache:true,request:true,text:"今日",tag:0},read:{cache:true,request:true,text:"读信",tag:0,ajaxApi:"mbox:readMessage",className:"gRead"},readThread:{cache:true,request:false,text:"读信会话",tag:0,className:"gRead"},folderMain:{cache:true,request:false,text:"文件夹",tag:0,ajaxApi:"mbox:getAllFolders",ajaxBody:{stats:true},className:"gFld"},folder:{cache:true,request:true,text:"",tag:0,className:"gIbx",ajaxApi:"mbox:listMessages",isFolder:true},compose:{cache:false,request:false,text:"写信",tag:0,className:"gCmp",innerClass:"gCmp-inner"},send:{cache:false,request:false,text:"发送成功",tag:0},address:{cache:true,request:false,text:"通讯录",tag:0,className:"gCnta",baseExt:"address"},addressCore:{cache:true,request:false,text:"通讯录",tag:0,className:"gCnta"},optionMain:{cache:true,request:false,text:"设置",tag:0,className:"gOpt",baseExt:"option",alias:["option"]},personal:{cache:true,request:true,text:"个人资料",tag:0,className:"gOpt",ajaxApi:"user:getAttrs",ajaxBody:{attrIds:["alt_email","true_name","nick_name","face","gender","remind","mobile_number","home_phone","company_phone","im_account","country","province","city","address","zipcode","company","department","position","fax_number","homepage"]},baseExt:"option"},question:{cache:true,request:true,text:"密码保护",tag:0,className:"gOpt",ajaxApi:"user:getAttrs",ajaxBody:{attrIds:["pwd_hint_question"]},baseExt:"option"},password:{cache:true,request:false,text:"修改密码",tag:0,className:"gOpt",baseExt:"option"},preference:{cache:true,request:false,text:"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值