Javascripts > Javascript Clocks > Date & Time Display in Status Bar
Script Title: Date & Time Display in Status Bar
Description: The script is to be immediately loaded when the frame loads in the browser window.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="Javascript"> function dttm() { var days=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","Decemeber"); sys_date=new Date(); sys_dd=sys_date.getDate(); sys_mm=sys_date.getMonth(); sys_yyyy=sys_date.getYear(); sys_hours=sys_date.getHours(); sys_mins=sys_date.getMinutes(); sys_secs=sys_date.getSeconds(); sys_day=sys_date.getDay(); sys_w_day=days[sys_day]; sys_w_mon=mons[sys_mm]; disp_time=sys_hours+":"+sys_mins+":"+sys_secs; window.status="Today is "+sys_w_day+" "+sys_w_mon+" "+sys_dd+","+sys_yyyy+". Time now is "+disp_time; setTimeout("dttm()",1000); } </script>
Copy the following code INTO your <BODY> tag.onLoad="dttm();"
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email