How do I change the default month that shows up when saving a Cal.

J

Jim Lopina

I want it to default to a particular month (current month) instead of it
defaulting to the first month. The part that controls which month is in a
java script. Currently this opens to December and I want it to open to
January upon opening url. Any help would be greatly appreciated.

Code looks like this:

</script>
<script language='JavaScript'>
var strTemp = new String(top.frames[0].location);
var curcalheader = '2004m12h.htm';
var iCount = curcalheader.length;
var URLbase = strTemp.substring(0, strTemp.length - iCount);
function NextMonth(){
var strTemp;
var nextcalheader = '2005m1h.htm';
var nextmonth = '2005m1.htm';
var nextdetails = '2005d1.htm';
nextcalheader = URLbase + nextcalheader;
nextmonth = URLbase + nextmonth;
nextdetails = URLbase + nextdetails;
top.frames[0].location = nextcalheader;
top.frames[3].location = nextmonth;
top.frames[4].location = nextdetails;
}
function PrevMonth(){
var prevcalheader = '';
var prevmonth = '';
var prevdetails = '';
prevcalheader = URLbase + prevcalheader;
prevmonth = URLbase + prevmonth;
prevdetails = URLbase + prevdetails;
top.frames[0].location = prevcalheader;
top.frames[3].location = prevmonth;
top.frames[4].location = prevdetails;
}
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top