i’m trying to build up an advent calendar in which the boxes just appear when its a certain date. but i just wont work..
<html>
<head>
<script type="text/javascript">
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
if(month == 10)
{
document.write (month);
document.getElementById("Ueberschrift").style.display = 'block';}
else {
document.getElementById("Ueberschrift").style.display = 'none';}
</script>
</head>
<body>
<h1 id="Ueberschrift" style="display:none">Day 1</h1>
</body></html>
i have no idea what to do…
maybe you guys could help me
thanks in advance
move the script below : ( the script is running
beforeit can find anyH1)http://jsbin.com/olijiv/2/edit