NoGray Visual Time Picker
Date : 2008 08 04 Category : Tech & Development
The NoGray Time Picker is a component that lets you add a time picker that is visual. The clock shows up, and you move the hands to wherever you need to be. All via a simple:
PLAIN TEXT JAVASCRIPT: var tp = new TimePicker('time2_picker', 'time2', 'time2_toggler', {format24:true});Or a more complex version that tracks the changes:
PLAIN TEXT JAVASCRIPT: var tp = new TimePicker('time_picker', null, null, {onChange:function(){ if (this.time.hour <12) var ampm = this.options.lang.am; else var ampm = this.options.lang.pm; var hour = this.time.hour%12; if (hour <10) hour = "0"+hour; var minute = this.time.minute; if (minute <10) minute = "0"+minute; $('time3_value').setHTML(hour+":"+minute+" "+ampm); } });After all that though, is it easier than asking to put in the time?