<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>06Calendar.html</title>

    <script src="Calendar/CombinedCompact/CalendarPopup.js"></script><!--引入外掛-->

    <script>

        var cal = new CalendarPopup();//這是背後寫好的程式,非JS自有

</script>     

 

<body>

           <form>

                     date:<input type="text" id="date" >

        <a href="#" id="anchorname" onclick="cal.select(document.forms[0].date,'anchorname','MM/dd/yyyy'); return false;">Select</a>

        <!--後面的'anchorname'bookmark,可以設定視窗跳出來的位置,指定把輸入的資料放入date-->

        <!--document.forms[0].date指定連結到上面id=date-->

                               

           </form>

 

</body>

</html>

 

arrow
arrow
    全站熱搜

    乙方 發表在 痞客邦 留言(0) 人氣()