HTML
  Home arrow HTML arrow Page 3 - Showing a Full Year with a Web Page Calend...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Showing a Full Year with a Web Page Calendar
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-05-18

    Table of Contents:
  • Showing a Full Year with a Web Page Calendar
  • The Show Current Year's Calendar Button
  • The showYear() Function
  • Explanation of the showYear() Function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Showing a Full Year with a Web Page Calendar - The showYear() Function


    (Page 3 of 4 )

    This function calls the showMonth() function twelve times to display the twelve months of a year. This is the function:


    function showYear(year)

    {

    var date;


    if (year == 'current')

    date = new Date()

    else

    date = new Date(year,0,1)


    var monthI;


    for (k=0;k<=11;k++)

    {

    if (k==0)

    monthI = 'A';

    else if (k == 1)

    monthI = 'B';

    else if (k == 2)

    monthI = 'C';

    else if (k == 3)

    monthI = 'D';

    else if (k == 4)

    monthI = 'E';

    else if (k == 5)

    monthI = 'F';

    else if (k == 6)

    monthI = 'G';

    else if (k == 7)

    monthI = 'H';

    else if (k == 8)

    monthI = 'I';

    else if (k == 9)

    monthI = 'J';

    else if (k == 10)

    monthI = 'K';

    else if (k == 11)

    monthI = 'L';


    date.setMonth(k);


    showMonth(date, "", monthI);

    }

    }


    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Hello HTML 5, Goodbye Gears
    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek