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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...