カウント JavaScript記述例

※bodyに直接記述します。
<script type="text/javascript">
<!--
var currentDate = new Date();
var targetDate = new Date(2008,1,1);
days = Math.ceil( (targetDate.getTime() - currentDate.getTime()) / (24*60*60*1000) );
document.write("2008年まであと", days, "日です。");
//-->
</script>

■こちらはiframe内になっています。css + xhtml + seo のtopページ(http://cssxhtmlseo.web.fc2.com/)よりご覧ください■

inserted by FC2 system