html编写简洁的页面表单验证程序Word格式.docx

上传人:b****3 文档编号:14409278 上传时间:2022-10-22 格式:DOCX 页数:23 大小:25.57KB
下载 相关 举报
html编写简洁的页面表单验证程序Word格式.docx_第1页
第1页 / 共23页
html编写简洁的页面表单验证程序Word格式.docx_第2页
第2页 / 共23页
html编写简洁的页面表单验证程序Word格式.docx_第3页
第3页 / 共23页
html编写简洁的页面表单验证程序Word格式.docx_第4页
第4页 / 共23页
html编写简洁的页面表单验证程序Word格式.docx_第5页
第5页 / 共23页
点击查看更多>>
下载资源
资源描述

html编写简洁的页面表单验证程序Word格式.docx

《html编写简洁的页面表单验证程序Word格式.docx》由会员分享,可在线阅读,更多相关《html编写简洁的页面表单验证程序Word格式.docx(23页珍藏版)》请在冰豆网上搜索。

html编写简洁的页面表单验证程序Word格式.docx

  {

  width:

170px;

  overflow:

visible;

  height:

auto;

  font-size:

small;

  position:

absolute;

  background-color:

#FFffdd;

  border:

1pxsolid#000;

  filter:

progid:

DXImageTransform.Microsoft.Shadow(color=#111111,direction=135,strength=3);

  top:

375px;

  padding:

5px;

  left:

671px;

  }

  _title

  .err{

50px;

24em;

#FFFFCC;

196px;

114px;

  opacity:

0.5;

1pxdouble#333333;

Shadow(Color=#000000,Direction=135);

DXImageTransform.Microsoft.Shadow(color=#111111,direction=135,strength=5);

  #form1.text_input{

  border-top:

1pxsolid#333333;

  border-right:

1pxsolid#999999;

  border-bottom:

1pxsolid#ddd;

  border-left:

1pxsolid#000000;

  }&

_title{

  color:

#FF0000;

  background:

#ACB9D1;

  #form1{

static;

581px;

463px;

1pxsolid#3300FF;

  ;

  #imok{

  display:

block;

315px;

scroll;

100px;

306px;

  .titleh1{

#33CCFF;

mediumsolid#3366FF;

  .titlep{

medium;

  text-indent:

2em;

  body{

  font-family:

Verdana,Arial,Helvetica,sans-serif;

  code{

  font:

12px/18px"

lucidaGrande"

verdana,lucida,Arial,helvetica,"

宋体"

sans-serif;

1pxsolid#0099cc;

5px;

  margin:

80%;

#000;

#ddedfb;

  --&

/style&

scriptlanguage="

JavaScript"

type="

text/javascript"

  //程序基本思路:

通过扩展对象来实现,将String扩展将默认的表单元素扩展定义两个自定义对象。

  //String.isEmail

  //String.isUrl

  //表单元素.required

  //表单元素.isvalid

  //function(){

  varurl=///[A-Za-z0-9]+.[A-Za-z0-9]+[/=?

%-&

amp;

_~`@[]'

:

+!

]*([

  var_d=this;

  var_s;

  _Y=_d.getFullYear();

  _M=_d.getMonth()+1;

  _D=_d.getDate();

  _H=_d.getHours();

  _I=_d.getMinutes();

  _S=_d.getSeconds();

  with(_d)

  _s=[getMonth()+1,getDate(),getHours(),getMinutes(),getSeconds()];

  for(vari=0;

i&

_s.length;

i++)

  if(_s[i].toString().length==1)_s[i]='

0'

+_s[i];

  return(_Y+'

-'

+_s[0]+'

+_s[1]+'

'

+_s[2]+'

'

+_s[3]+'

+_s[4])

  //├日期验证(第二部分)

  Date.parseDate=function(str,fmt){

  fmt=fmt  "

%Y-%m-%d%H:

%M"

  vartoday=newDate();

  vary=0;

  varm=-1;

  vard=0;

  vara=str.split(/W+/);

  varb=fmt.match(/%./g);

  vari=0,j=0;

  varhr=0;

  varmin=0;

  for(i=0;

a.length;

++i){

  if(!

a[i])

  continue;

  switch(b[i]){

  case"

%d"

%e"

  d=parseInt(a[i],10);

  break;

%m"

  m=parseInt(a[i],10)-1;

%Y"

%y"

  y=parseInt(a[i],10);

  (y&

100)&

(y+=(y&

29)?

1900:

2000);

%b"

%B"

  for(j=0;

j&

12;

++j){

  if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;

break;

}

%H"

%I"

%k"

%l"

  hr=parseInt(a[i],10);

%P"

%p"

  if(/pm/i.test(a[i])&

hr&

12)

  hr+=12;

  elseif(/am/i.test(a[i])&

=12)

  hr-=12;

  min=parseInt(a[i],&

/p&

divalign='

left'

b&

divid=pagesstyle='

float:

left;

border:

1pxsolid#39f;

text-align:

center;

WIDTH:

30px;

HEIGHT:

20px;

background-color:

#eee;

padding:

2px;

margin:

margin-right:

0;

fontcolor='

red'

1&

/font&

/div&

&

a&

#39;

2&

/a&

3&

4&

divid=nextpagestyle='

55px;

.&

/b&

/DIV&

DIVclass="

mycontent3"

IFRAMEsrc="

title='

文章标题:

分析总

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 幼儿教育 > 育儿理论经验

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1