As follows,
Usage
Introduce <SCRIPT src = "JS/calendardateinput. js"> </SCRIPT>
You can modify the image path in calendardateinput. js.
Call:
From <input type = "text" size = "10" name = "sdate">
<SCRIPT type = "text/JavaScript">
Dateinput ('sdate', 'yyyy-MM-DD ', '2017-11-17 ');
</SCRIPT>
& Nbsp;
<Input type = "text" size = "10" name = "edate">
<SCRIPT type = "text/JavaScript">
Dateinput ('datedate', 'yyyy-MM-DD ', '2017-11-18 ');
</SCRIPT>
Download the source code
Second.
< Script Language = 'Javascript' SRC = '/Include/popcalendar. js' >
</ Script >
< Script Language = 'Javascript' SRC = '/Include/calendar. js' >
</ Script >
Select Date: </ TD >
< TD Colspan = '2' Class = 'Ifont1' > < Input Name = 'I3' Type = 'Image' Onclick = "Popupcalendar (this, this. Form. abtime, 'yyyy-mm-dd'); Return false ;" SRC = '/Wcm/zwinside/bmzc/zhjszx/xxs/images/ew_calendar.gif' ALT = 'Select A date' Align = 'Middle' Width = '20' Height = '15' >
< Input Type = 'Text' Name = 'Abtime' Class = 'Inputnormal' Size = '12' Value = '2017-11-20' >
To
< Input Name = 'I32' Type = 'Image' Onclick = "Popupcalendar (this, this. Form. abtime2, 'yyyy-mm-dd'); Return false ;" SRC = '/Wcm/zwinside/bmzc/zhjszx/xxs/images/ew_calendar.gif' ALT = 'Select A date' Align = 'Middle' Width = '20' Height = '15' >
< Input Type = 'Text' Name = 'Abtime2' Class = 'Inputnormal' Size = '12' Value = '2017-11-20' >
& Nbsp; </ TD >
I have never used this calendar .. You can view the code in the image path ..
/Files/genson/calendar2.rar
3rd.
Call:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< Html Xmlns = "Http://www.w3.org/1999/xhtml" >
< Head >
< Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312" />
< Title > Untitled document </ Title >
< Script SRC = "Meizzdate. js" > </ Script >
</ Head >
< Body >
< Input Onfocus = "Setday (this )" Type = "Text" Name = "T" />
</ Body >
</ Html >
/Files/genson/calendar3.rar