Adding date to website

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dew
    Master Sergeant

    • Apr 2008
    • 63

    Adding date to website

    Im creating a website (not yet published) & I want to add today's date (automatically updating). How do I do this?

    Main website is www.galwoliecottage.com but new one has no domain yet! Hope you can still help.

    Denise
  • Karen Mac
    General

    • Apr 2006
    • 8332

    #2
    Re: Adding date to website

    Try dynamicdrive.com for a date/time script

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • dew
      Master Sergeant

      • Apr 2008
      • 63

      #3
      Re: Adding date to website

      thanks Karen, but theres nothing on it just for date,as far as I can see.

      Denise

      Comment

      • Collectors-info
        General

        • Feb 2006
        • 8703

        #4
        Re: Adding date to website

        Hi, you can paste this below into a html box.

        <script language="JavaScript">
        <!--
        var now = new Date();
        var days = new Array(
        'Sun','Mon','Tues',
        'Wednes','Thurs','Fri','Sat');
        var months = new Array(
        'Jan','Feb','Mar','Apr','May',
        'June','July','Aug','Sept','Oct',
        'Nov','Dec');
        var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
        function fourdigits(number) {
        return (number < 1000) ? number + 1900 : number;}
        today = days[now.getDay()] + ", " +
        months[now.getMonth()] + " " +
        date + ", " +
        (fourdigits(now.getYear()));
        document.write(today);
        //-->
        </script>
        Regards Chris.

        Collectables, Collecting, collectors-info.com

        www.chrismorris.co.uk

        House build project

        Comment

        • dew
          Master Sergeant

          • Apr 2008
          • 63

          #5
          Re: Adding date to website

          CHris, when I paste that into my HTML box, and then go to preview it, the date box doesnt appear. Am I missing something?

          Denise

          Comment

          • Bethers
            Major General & Forum Moderator

            • Feb 2006
            • 5224

            #6
            Re: Adding date to website

            Your computer is blocking it from being shown in preview. You're probably getting a notice on top of the screen that some content is blocked - click on that to allow that content and it will show. Or just publish :)
            Beth
            A Child's Palace - Pinata Palace - Moxie Enterprises

            SEO and Marketing Tools
            SEO - The Basics

            Comment

            • dew
              Master Sergeant

              • Apr 2008
              • 63

              #7
              Re: Adding date to website

              Bethers - THanks, thats great! Its my husbands site and hes working on domain name, etc at the moment so cant publish yet. He wants to know now, can the font be changed for that html code?

              Comment

              • Bethers
                Major General & Forum Moderator

                • Feb 2006
                • 5224

                #8
                Re: Adding date to website

                The way that code is written, it's using the default font chosen for your page. If you want a different font just for that code, yes it can be done, but you'll need to add it to the code using the following:

                Before the code put:

                <FONT style="FONT-SIZE:10pt" color="#FFFFFF" face="Georgia">

                change the size and color and face to whatever you want.

                After the code put:

                </FONT>
                Beth
                A Child's Palace - Pinata Palace - Moxie Enterprises

                SEO and Marketing Tools
                SEO - The Basics

                Comment

                • Karen Mac
                  General

                  • Apr 2006
                  • 8332

                  #9
                  Re: Adding date to website

                  Theres a ton of them on dynamic drive



                  Karen

                  VodaHost

                  Your Website People!
                  1-302-283-3777 North America / International
                  02036089024 / United Kingdom
                  291916438 / Australia

                  ------------------------

                  Top 3 Best Sellers

                  Web Hosting - Unlimited disk space & bandwidth.

                  Reseller Hosting - Start your own web hosting business.

                  Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


                  Comment

                  • Collectors-info
                    General

                    • Feb 2006
                    • 8703

                    #10
                    Re: Adding date to website

                    Originally posted by Karen Mac View Post
                    Hi Karen, don't think there is a date only script on this site. which is strange
                    Regards Chris.

                    Collectables, Collecting, collectors-info.com

                    www.chrismorris.co.uk

                    House build project

                    Comment

                    • valwilson
                      Sergeant Major

                      • Jul 2008
                      • 86

                      #11
                      Re: Adding date to website

                      Hi Beth,
                      that worked perfectly! Thanks for your help.

                      Denise

                      Comment

                      • Bethers
                        Major General & Forum Moderator

                        • Feb 2006
                        • 5224

                        #12
                        Re: Adding date to website

                        Yvw
                        Beth
                        A Child's Palace - Pinata Palace - Moxie Enterprises

                        SEO and Marketing Tools
                        SEO - The Basics

                        Comment

                        Working...
                        X