+ Reply to Thread
Results 1 to 7 of 7

Thread: How to create a date stamp?
      
   

  1. #1
    beto is offline Corporal
    Join Date
    May 2006
    Location
    wet Pacific NW US
    Posts
    11

    Default How to create a date stamp?

    Is there an easy way to set the current date every day on the main page of my web site?

    Bob
    Beto

  2. #2
    bill2006's Avatar
    bill2006 is offline Lieutenant General
    Join Date
    May 2006
    Posts
    3,422

    Default Re: How to create a date stamp?

    Yes there are several ways. What is your website?

  3. #3
    Join Date
    Feb 2006
    Location
    Kings Lynn, Norfolk (UK)
    Posts
    8,719

    Default Re: How to create a date stamp?

    Try cutting & pasting this script between the dotted lines into you html box. NOT the dotted lines.
    -----------------------------------------------------------------------

    <html>
    <head>
    <title>Creates TIMEDATE STAMP for WEB PAGES BY htpp://www.collectors-info.com</title>
    </head>
    <body bgcolor="ffffff">
    <script LANGUAGE="Javascript">
    <!-- Hiding from those old Browsers
    // Y2K READY-USE GetFullYear
    // DAY Names Javascript is funny Starts the numbering with Zero this array translates to 0...6 to the days of the week
    // REMEMBER Arrays have to be written all on ONE(1) line to work
    var stampdays = new Array( "Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday");
    // Month Names - Guess what this array does. 0..11 to the system clock month
    var stampmonths = new Array( "January","February","March","April","May","June", "July","August","September","October","November"," December");
    // GRABS the Date info from your System clock when your Browser reads enters the page.
    var thedate = new Date();
    //Gets the Translated Arrays written to the webpage for viewing. Remember you can use this for other things, too
    document.write(stampdays[ thedate.getDay()] + ", " + stampmonths[ thedate.getMonth()] + " " + thedate.getDate() + ", " + thedate.getFullYear());
    // -->
    </script>
    </body>
    </html>
    -----------------------------------------------------------------------


    Chris.

  4. #4
    beto is offline Corporal
    Join Date
    May 2006
    Location
    wet Pacific NW US
    Posts
    11

    Cool Re: How to create a date stamp?

    My site address is www.htorganizer.com.

    And ummmmm, what is my html box? Is that something in the page properties html, or is that the box I get from the html icon on the left side tools bar? How does the position of that box affect the outcome. How do I position and format the time stamp?

    Thanks for your help.

    Bob
    Beto

  5. #5
    bill2006's Avatar
    bill2006 is offline Lieutenant General
    Join Date
    May 2006
    Posts
    3,422

    Default Re: How to create a date stamp?

    Patience.
    Did you visit the tutorials?
    HTML is the first funny little icon on the left of your BlueVoda screen, if by chance it is not there, try Insert>Advanced>HTML from the top menu. You got it right on your home page.

    Your own creativity will determine where you position your elements on your page, keep in mind page width and keeping it user friendly.

    Good luck.

  6. #6
    beto is offline Corporal
    Join Date
    May 2006
    Location
    wet Pacific NW US
    Posts
    11

    Default Re: How to create a date stamp?

    Thanks Bill, that worked.

    I had visited that tutorial, but the tutorial should be more complete. It gives no hint what is going on except that you open this box and insert your html code. To a newbie like me, it is really bare bones.

    I have the date stamp in plain black letters. Can I control format such as color, font, size? Is there a list of other utilities such as this one availabe somewhere?

    Bob
    Beto

  7. #7
    bill2006's Avatar
    bill2006 is offline Lieutenant General
    Join Date
    May 2006
    Posts
    3,422

    Default Re: How to create a date stamp?

    Your welcome, yes you can control color and font, etc. look at the first lines and there will be something like:
    <FONT style="font-size:13px" color="#000000"
    sometimes followed by the font type. For a list of some colors go to:
    http://www.w3schools.com/html/html_colornames.asp

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49