关于一个注册邮箱的demo
2016-03-23 09:59
176 查看
原文链接:http://www.cnblogs.com/Arther-J/p/5309831.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 5 <head> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 7 <title>val_test</title> 8 <meta name="author" content="Administrator" /> 9 <script type="text/javascript" src="script/jquery-1.12.2.js"></script> 10 <!-- Date: 2016-03-23 --> 11 </head> 12 <body> 13 <input type="text" id="address" value="请输入邮箱地址" /> 14 <input type="text" id="password" value="请输入邮箱密码" /> 15 <input type="button" value="登录" /> 16 <script type="text/javascript"> 17 $("#address").focus(function() { 18 var txt_value = $(this).val(); 19 if(txt_value=="请输入邮箱地址"){//或者用defaultValue。 20 $(this).val(""); 21 } 22 }); 23 24 $("#address").blur(function() { 25 var txt_value = $(this).val(); 26 if(txt_value==""){ 27 $(this).val("请输入邮箱地址"); 28 } 29 }); 30 31 $("#password").focus(function() { 32 var txt_value = $(this).val(); 33 if(txt_value=="请输入邮箱密码"){ 34 $(this).val(""); 35 } 36 }); 37 38 $("#password").blur(function() { 39 var txt_value 3ff7 = $(this).val(); 40 if(txt_value==""){ 41 $(this).val("请输入邮箱密码"); 42 } 43 }); 44 </script> 45 </body> 46 </html>
转载于:https://www.cnblogs.com/Arther-J/p/5309831.html
相关文章推荐
- 关于dubbo的一个demo
- 安卓关于输入提示后缀选择的注册邮箱项小例子
- 关于CloudXNS注册邮箱为网易的处理办法
- 关于回调的一个最简单的Demo
- 关于TextView的一个demo
- 一个后端的前端学习之旅——4.第一个demo上线以及关于前端框架我的看法
- 急需要一个***@neusoft.net的邮箱,怎么注册,或者有的话暂时借我用下(临时用) 谁能帮个忙,分都给你
- 找到的一个 关于用USB连接到手机发送短消息的DEMO CODE
- 利用Java Swing技术设计一个Email邮箱地址注册的图形用户界面应用程序
- 关于EF的一个简单Demo
- 一个关于freemarker+webwork+spring+ibatis的demo文档
- 关于inline-block,间隙距离去除,以及div自动换行,高度等问题的一个demo
- asp.net实现一个用户进行注册的时候同时发送一个邮件到注册人的邮箱,通过发送的邮箱链接来激活该帐号
- 一个关于ABAP中AUTHORITY-CHECK的Demo
- 使用php完成一个用户注册以及管理的demo(php实现单文件与多文件的上传)
- DEMO[C#]TypeChange 关于类型转换的一个DEMO
- 一个关于jquery easyui crud demo 的一个例子
- python爬虫学习(8) —— 关于4399的一个小Demo
- 最近收到一个他人公司的关于某个jar包使用的Android Demo.发现有这样的一个开发手法,算是涨了一波姿势了。...
- 关于委托,一个简单的demo