当前位置:编程学习 > JS >>

常用的js 时间选择器 DateTime picker

<!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>Protoplasm</title>
        <link rel="stylesheet" href="datepicker_files/protoplasm_002.css">
        <script type="text/javascript" language="javascript" src="datepicker_files/prototype.js"></script>       
        <script type="text/javascript" language="javascript" src="datepicker_files/protoplasm.js"></script>
        <link href="datepicker_files/protoplasm.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" language="javascript">
            Protoplasm.use('datepicker').transform('.datetimepicker_es', { locale: 'es_AR', timePicker: true, use24hrs: true });

        </script>
        <script type="text/javascript" src="datepicker_files/datepicker.js"></script>
        <script type="text/javascript" src="datepicker_files/timepicker.js"></script>
        <link href="datepicker_files/datepicker.css" type="text/css" rel="stylesheet">
        <link href="datepicker_files/timepicker.css" type="text/css" rel="stylesheet">
    </head>
    <body>

<form onsubmit="return false;">
   
    <div style="float:left; width:250px;">Date and time:</div>
<input value="06-21-2012 11:42:00" class="datetimepicker_es">
   
</form>

   
</body></html>
 

补充:web前端 , JavaScript ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,