Announcement

Collapse
No announcement yet.

Dates & time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dates & time

    Hey Everyone,

    Site is www.tickasports.com.au/constructionstage.

    I was wondering if someone here could help me get a programme or show me how to add an element so that browsers could see a future date gets displayed on that site where the marquee on the top left hand corner is scrolling towards.

    Every help will be very much appreciated.

    Cheers

  • #2
    Re: Dates & time


    navaldesign
    General & Forum Moderator


    <font style="font-size:12px;font-family:Arial;" color=#000000>
    <div id="basicdate">
    </div>
    </font>
    <script language="JavaScript" type="text/javascript">
    var now = new Date();
    var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thu rsday','Friday','Saturday');
    var months = new Array('January','February','March','April','May',' June','July','August','September','October','Novem ber','December');
    var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
    var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();
    today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;
    basicdate.innerHTML = today;
    </script>

    Comment


    • #3
      Re: Dates &amp; time

      My apologies, its been long and I just want to thank you for your reply. Have got the date on the site now.

      Cheers to everyone.

      Another one bites the dust!

      Comment

      Working...
      X