<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container1'));
};
</script>
<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container2'));
};
</script>
<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal, dp_cal2;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container1'));
dp_cal2 = new Epoch('epoch_popup2','popup2',document.getElementById('popup_container2'));
};
</script>
มั่วนะคับ ไม่รู้ได้ป่าว ลองดู ให้สร้าง id popup_container2 ด้วย
<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal, dp_cal2;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container1'));
dp_cal2 = new Epoch('epoch_popup2','popup',document.getElementById('popup_container2'));
};
</script>
<!-- html -->
<input type="text" name="date1" id="popup_container1">
<input type="text" name="date2" id="popup_container2">