Jump to content

JS Calendar


CNT

Recommended Posts

The code is old-fashioned, it's not considered good practice to use document.write to write strings of HTML, the more modern way is to use DOM methods to create and append the individual elements. There are also several tags which don't get closed, mostly td and font tags. The issue with the day not being correct may be due to how you use start_day, but it's hard to tell without seeing the code running. Why do you add 1 to start_day, and why do you set it to 8 if it starts at 1? What does it mean if start_day is 8?

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...