Jquery

jQueryメモ


カレンダープラグイン


1.以下の階層にjsファイルを配置
webapp
+ css
+ img
+ jquery
|   + plugin
|   | + &bold(){jQueryCalendar} // カレンダープラグイン
|   |
|   + jquery-1.1.4.js
|   + jquery-1.1.4.pack.js
|
+ WEB-INF


2.jQueryでカレンダーを使用する。
if($.fn.calendar){
	$('.calendar').calendar({
		autoPopUp: 'button',
		clearText: 'クリア',
		closeText: '閉じる',
		prevText: '前月',
		nextText: '次月',
		currentText: '本日',
		dayNames: new Array('日','月','火','水','木','金','土'),
		monthNames: new Array('1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'),
		buttonImage: getContextPath() + '/img/calendar2.gif',
		buttonImageOnly: true,
		dateFormat: 'YMD',
		speed: ''
	});
}

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2008年06月24日 15:01
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。