日期:2014-05-17 浏览次数:20672 次
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.util.*,java.text.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>regist</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
/**js写的方法**/
function control(inputId,note,rightImage,wrongImage,isSpace){
$(isSpace).css("display","none");
$(note).css("display","inline-block");
$(rightImage).css("display","none");
$(wrongImage).css("display","none");
$(inputId).blur(function(){
if($(inputId).val()!=""){
$(isSpace).css("display","none");
$(note).css("display","none");
$(rightImage).css("display","inline-block");
$(wrongImage).css("display","none");
}else{
$(wrongImg).css("display","inline-block");
$(isSpace).css("display","inline-block");
$(note).css("display","none");
$(rightImage).css("display","none");
}
});
}
/**方法调用**/
$(function(){
control("#username",
"table tr:eq(0) td:eq(2) span:eq(1)",
"table tr:eq(0) td:eq(2) img:eq(1)",
"table tr:eq(0) td:eq(2) img:eq(0)",
"table tr:eq(0) td:eq(2) span:eq(0)");
control("#pwd",
"table tr:eq(1) td:eq(2) span:eq(1)",
"table tr:eq(1) td:eq(2) img:eq(1)",
"table tr:eq(1) td:eq(2) img:eq(0)",
"table tr:eq(1) td:eq(2) span:eq(0)");
control("#phone",
"table tr:eq(3) td:eq(2) span:eq(1)",
"table tr:eq(3) td:eq(2) img:eq(1)",
"table tr:eq(3) td:eq(2) img:eq(0)",
"table tr:eq(3) td:eq(2) span:eq(0)");
});
</script>
</head>
<body>
<div id="wrap">
<div id="top_content">
<div id="header">
<div id="rightheader">
<p>
<%
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
out.println(sdf.format(date));
%>
<br />