ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:

Displaying the Date in the Status Bar

This script uses the various parts of the Javascript Date object to build up today's date and display it in the status bar.

First place the following code in the <head> section of the page.

<script language="javascript">

function showdate()
   var d= new Date();
   var y=d.getYear();
   var m=d.getMonth() +1;
   var day=d.getDate();
   var t=m+'/'+d+'/'+y+' ';
   statusLine="The date today is " + t + ".";}


Next call the function from the <body> tag using the onLoad Event Handler :

<body onLoad="showdate()">

Recent Forum Threads
• Run a program both on windows and linux
• VERO.SurfCAM.v2014
• Schlumberger.Petrel.V2013.2
• Petrel.V2013.2
• Altair.HyperWorks.v12
• VoluMill.v6.1
• VoluMill.NEXION.6
• VERO.SurfCAM.v2014
• Schlumberger.Petrel.V2013.2

Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text

© Copyright 2001-2014