您的位置:首页 > 大数据 > 人工智能

漂亮的文本框+Email正则表达式

2008-03-20 22:52 309 查看
2008-03-18 19:47
<!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>无标题文档</title>
<style type="text/css">
html {min-width:985px;}
body{margin:10px 0 0 0;text-align:center; padding-left: 6px; background: #fff;font-size:12px;}
div,table,td,li,input,select,dd{font-family:"宋体";line-height:20px;}
*{margin:0;padding:0;}

input{
font-size:12px;
border:none;
}

.inputstyle1{
width:70px;
height:16px;
border:1px solid #DFDFDF;
background:#ffffff;
margin:0 0 0 2px;
}
.inputstyle2{
width:300px;
height:16px;
border:1px solid #DFDFDF;
background:#ffffff;
margin:0 0 0 2px;
}

</style>
</head>

<body>
<TABLE style="BORDER-BOTTOM: #f2f2f2 1px solid" width=985 align=center bgColor=#fffeec border=0>
<TBODY>
<TR vAlign=center>
<TD width=87 height=38>
<DIV align=right><FONT color=#ff0000>*</FONT> 姓名:</DIV></TD>
<TD width=346 height=38>
<DIV align=left><INPUT maxLength=15 name="trueName" id="trueName"><INPUT maxLength=15 name="newsid" id="newsid" value="HGNRU92JB48N98O" type="hidden"> <FONT
color=#999999>请填写真实姓名:</FONT></DIV></TD>
<TD width="102" height=38>
<div align="center"><FONT color=#ff0000>* </FONT>邮 件:</div></TD>
<TD height=38>
<DIV align=left>
<div align=left>
<input
onBlur="if(eval('/[^0-9a-z/-/./_@ ]/gi').test(value) || !eval('/[^@]+@{1}[^/.]+[/.]{1}[^@]+/gi').test(value))alert('邮件格式不正确');"
maxlength=25 size=25 name=email id=email></div>
</DIV></TD></TR>
<TR vAlign=center>
<TD width=87 height=28>
<DIV align=right><FONT color=#ff0000>* </FONT>电话:</DIV></TD>
<TD height=28>
<DIV align=left><INPUT onBlur="if(eval('/[^0-9/-/(/)]/gi').test(value) || !eval('/[0-9/-/(/)]{7,30}/gi').test(value))alert('电话号码格式不正确');"
maxLength=30 name=tel id=tel> <FONT color=#999999>例:028-68185258</FONT></DIV></TD>
<TD height=28>
</TD>
<TD width=432>
</TD></TR>
<TR>
<TD vAlign=top width=87 height=45>
<DIV align=right><FONT color=#ff0000>*</FONT> 内容:<BR></DIV></TD>
<TD vAlign=top colSpan=3>
<DIV align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="56%"><TEXTAREA title=请详细填写您要咨询的问题! name=content id=content rows=6 cols=80></TEXTAREA> </TD>
<TD width="44%"> </TD>
</TR></TBODY></TABLE>
<div id="lycode"> </div>
</DIV></TD></TR>
<TR>
<TD height=30></TD>
<TD colSpan=3 height=35>
<DIV align=left><INPUT type=image height=20 width=65 src="http://www.pxto.cn/image/tj.gif" align=absMiddle onClick="ajaxbm()"></DIV></TD></TR></TBODY></TABLE>
</body>
</html>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: