Looking at your source code, it looks as though you either didn't follow the directions or FP did something to your code to mangle it. Actually, since both script call:
Code:
<script type="text/javascript" src="basiccalendar.js">
/***********************************************
* Basic Calendar-By Brian Gosselin at http://scriptasylum.com/bgaudiodr/
* Script featured on Dynamic Drive (http://www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
and calendar style:
Code:
<style type="text/css">
.main {
width:200px;
border:1px solid black;
}
.month {
background-color:black;
font:bold 12px verdana;
color:white;
}
.daysofweek {
background-color:gray;
font:bold 12px verdana;
color:white;
}
.days {
font-size: 12px;
font-family:verdana;
color:black;
background-color: lightyellow;
padding: 2px;
}
.days #today{
font-weight: bold;
color: red;
}
</style>
are missing entirely from the head of the document, it looks like you skipped some steps. Once those are remedied, it will become apparent where the calendars are and you might (will) wish to change that. The calendar calls:
Code:
<script type="text/javascript">
var todaydate=new Date()
var curmonth=todaydate.getMonth()+1 //get current month (1-12)
var curyear=todaydate.getFullYear() //get current year
document.write(buildCal(curmonth ,curyear, "main", "month", "daysofweek", "days", 1));
</script>
and similar are like divisions or tables, place them in your HTML markup like you would a division or table, not in the head.
One other thing the drop down select appears not to be working even if the script call and style are added. I'm not sure why this is happening but, once again (for whatever reason) your code does not reflect the example for this.
This bit in your source:
HTML Code:
<applet width="128" height="128" code="basiccalendar.js">
</applet>
doesn't belong and the form tag is missing from around the script and select tag while instead it is wrapped in this link, causing it to load your index page when clicked:
HTML Code:
<a href="index.shtml">
Even taking care of all that, there is still some error as all it then seems to do is switch to January, no matter what month is selected.
Perhaps you should start by just trying to get one calendar working with no selects or other frills.
Bookmarks