I am trying to add the Epoch calendar (http://www.javascriptkit.com/script/script2/epoch/index.shtml) to a page, using the code below, and it's now working. I have a HTML object which contains one line of code (<div id="calendar1_container"></div>)
and the following code in my Header Code:
<script type="text/javascript"> var calendar1; /*must be declared in global scope*/ /*put the calendar initializations in the window's onload() method*/
window.onload = function() { calendar1 = new Epoch('cal1','flat',document.getElementById('calendar1_container'),false); }; </script>
I tried putting the following code in the OnLoad Event, but that didn't help either.
function() { calendar1 = new Epoch('cal1','flat',document.getElementById('calendar1_container'),false);
Can someone please point me in the right direction? (I would really, really appreciate it!)