java sript 实现注册网页验证????

来源:百度知道 编辑:UC知道 时间:2024/06/29 23:58:05
我刚学java Web。。。希望高手给你个用javasript 验证用户登陆的小例子,,,,,不慎感激!!!
先感谢大家的帮忙。。。但在jsp中不起作用呢????
能给个jsp的例子吗,,,

这是个HTML文档,参考一下?

<!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>50用户注册表单验证</title>
<style type="text/css">
<!--
.aa {
font-family: "长城粗隶书体";
font-size: 24px;
font-style: italic;
font-weight: bold;
color: #FF0000;
background-color: #FFDF00;
}
.bb {
border-top-style: outset;
border-right-style: outset;
border-bottom-style: outset;
border-left-style: outset;
}