作者在 2010-12-24 10:09:39 发布以下内容
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script language="javascript" type="text/javascript"
src="include/contain.js">
$(document).ready(function() {
var currentDate = new Date();
var currentYear = currentDate.getFullYear();
var lastYear = currentYear - 1;
var nextYear = currentYear + 1;
var options = '<option value="' + lastYear + '">' + lastYear + '</option>' +
'<option selected="selected" value="' + currentYear + '">' + currentYear + '</option>' +
'<option value="' + nextYear + '">' + nextYear + '</option>'
$('#projectYear').append(options);
)
});
</script>
</head>
<body>
<select id="projectYear" class="width70n"> </select>
</body>
</html>
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script language="javascript" type="text/javascript"
src="include/contain.js">
$(document).ready(function() {
var currentDate = new Date();
var currentYear = currentDate.getFullYear();
var lastYear = currentYear - 1;
var nextYear = currentYear + 1;
var options = '<option value="' + lastYear + '">' + lastYear + '</option>' +
'<option selected="selected" value="' + currentYear + '">' + currentYear + '</option>' +
'<option value="' + nextYear + '">' + nextYear + '</option>'
$('#projectYear').append(options);
)
});
</script>
</head>
<body>
<select id="projectYear" class="width70n"> </select>
</body>
</html>