<script src='<%=ResolveUrl("~/JScript/Scripts/jquery-1.10.2.min.js") %>' type="text/javascript"></script>
<script src='<%=ResolveUrl("~/JScript/Scripts/jquery-ui.min.js") %>' type="text/javascript"></script>
<script src='<%=ResolveUrl("~/JScript/Scripts/jquery-ui-timepicker-addon.js") %>'
type="text/javascript"></script>
<script src='<%=ResolveUrl("~/JScript/Scripts/jquery.ui.datepicker-zh-TW.js") %>'
<link href="<%= ResolveUrl("~/CSS/cssDefault.css") %>" rel="stylesheet" type="text/css" />
//日期選擇
try {
window.setDatepicker = function (obj, txt, defaultdate, enddatepicker, minDate) {
if (defaultdate) {
$(obj).val($.datepicker.formatDate('yy/mm/dd', new Date()));
}
$(obj).datepicker({
dateFormat: 'yy/mm/dd',
showOn: 'both',
buttonImageOnly: true,
changeYear: true,
changeMonth: true,
showOtherMonths: true,
selectOtherMonths: true,
autoSize: true,
buttonImage: tUrl + 'Image/Commond/calendar.gif',
buttonText: txt,
regional: 'zh-TW',
onClose: function (selectedDate) {
if ('' != enddatepicker && null != enddatepicker) {
$(enddatepicker).datepicker('option', 'minDate', selectedDate);
$('.ui-datepicker-trigger').css({
'cursor': 'pointer',
'vertical-align': 'middle'
});
}
}
});
if (minDate) {
$(obj).datepicker('option', 'minDate', new Date());
}
$('.ui-datepicker-trigger').css({
'cursor': 'pointer',
'vertical-align': 'middle'
});
}
} catch (e) { }
留言列表