<!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>
留言列表