本 jQuery 外掛名為 manhuaDate,目前僅支援 jQuery 1.9.0 以下版本,例如 jquery-1.8.3.min.js。介面簡潔大氣,適合各類表單的日期輸入。
查看效果:https:///keleyi/phtml/jqtexiao/21.htm
範例程式碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一款簡潔大氣的 jquery 日期日曆插件- </title>
<link rel="stylesheet" type="text/css" href="https:///keleyi/phtml/jqtexiao/21/css/manhuaDate.1.0.css">
<script src="https:///keleyi/pmedia/jquery-1.8.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="https:///keleyi/phtml/jqtexiao/21/js/manhuaDate.1.0.js"></script>
<script type="text/javascript">
$(function () {
$("input.mh_date").manhuaDate({
Event: "click", //可選
Left: 0, //彈出時間停靠的左邊位置
Top: -16, //彈出時間停靠的頂部邊位置
fuhao: "-", //日期連接符默認為 -
isTime: false, //是否開啟時間值默認為 false
beginY: 1949, //年份的開始默認為 1949
endY: 2100//年份的結束默認為 2049
});
});
</script>
</head>
<body>
<div>
<h1>一款簡潔大氣的 jquery 日期日曆插件·</h1>
<input type="text" class="mh_date" readonly="true" />
<input type="text" class="mh_date" readonly="true" />
</div>
</body>
</html>