Home arrow HTML arrow Page 2 - Showing a Full Year with a Web Page Calendar
HTML

Showing a Full Year with a Web Page Calendar


Welcome to the sixth part of an eight-part article series that shows you how to build a web page calendar. Up to now we've mostly been dealing with calculating and displaying the months. In this part of the series I talk about the layout of the calendar, and I introduce a new function that will show an entire year at a time.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
May 18, 2009
TABLE OF CONTENTS:
  1. · Showing a Full Year with a Web Page Calendar
  2. · The Show Current Year's Calendar Button
  3. · The showYear() Function
  4. · Explanation of the showYear() Function

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Showing a Full Year with a Web Page Calendar - The Show Current Year's Calendar Button
(Page 2 of 4 )

When the Show Current Year's Calendar Button is clicked, the calendar for the current year appears. When you click outside the calendar of the year, on the body element, the calendar disappears. The tag for this button is:


<button type="button" onclick="CalJustClicked = true; showYear('current')">Show Current Year's Calendar</button>


The value (string) for the onclick attribute begins with


CalJustClicked = true;


This statement serves the same purpose as we saw before. The next statement in the value (string) is:


showYear('current')


This calls a new function, showYear(year), which I will now describe.


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials