www.webdeveloper.com
Results 1 to 2 of 2

Thread: closing out the calendar

  1. #1
    Join Date
    Oct 2003
    Location
    Cincinnati,Ohio
    Posts
    42

    closing out the calendar

    Here is my code for my calendar. Now how would put a close link at the bottom of the calendar, so that when someone wants to get out of the calendar then can hit the close link. I tryed to search it but couldnt come up with anything.


    Calendar Code:\
    <html>
    <head>
    <style>
    .cw {width:20px}
    </style>
    <script>
    function a() {
    document.getElementById('show_cal').style.visibility = 'visible';
    }
    </script>
    </head>
    <body>

    <input type="text" name="txtDate">

    <input name="button" type="button" onClick="a()" value="Calendar">

    <div id ="show_cal" style="position: absolute; top: 51px; left:165px; border: solid; visibility:hidden; width: 151px; height: 26px;">
    <div class="close">Cancel</div>
    <script>

    ms = 5;
    dm = 31;
    d = 1;

    for (i=1; i<=42;i++){

    if ( i >= ms && d <=dm)
    {
    html ="<input type='text' class='cw' value=" + d + ">";
    d++;
    }
    else
    {
    html = "<input type='text' class='cw'>";
    }
    document.write(html);

    if (i % 7 == 0){
    document.write("<br>");
    }

    }

    </script>

    </div>

    </body>
    </html>
    Thanks
    Dan

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles