It has worked so far, but what I want it to do is show a <div> with the id matching the week number. Firebug tells me that "contentDiv is null". My code is this:
Code:
function showContent(){
//Get the week number
var divNumber = getWeek(y2k(now.getYear()),now.getMonth(),now.getDate());
//Specify the container
var contentDiv = document.getElementById(divNumber);
//Show the container
contentDiv.style.display='inline';
}
And later in the Body:
Code:
<script>showContent();</script>
I clearly defined contentDiv as you can see, but it simply doesn't work. Any suggestions?
Bookmarks