Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Scoundral #1
Self advancing date and time script
:cool; I have the attached piece of javascript on my website homepage: (
[url]http://www.clifflosakgd.com[/url] )
the date advances perfectly but so far have been unable to get the time
(hours, minutes, seconds) to work.
could someone pls check the code and assist me. Thanks in advance.
-C-
<SCRIPT LANGUAGE="JavaScript">
<!--
var the_weekday = new
Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday"); /
/predefine weekday names
var the_month = new
Array("January","February","March","April","May"," June","July","August","Septemb
er","October","November","December"); //predefine month names
var this_date_timestamp=new Date(); // get current day-time stamp
var this_weekday = this_date_timestamp.getDay() // extract weekday
var this_date = this_date_timestamp.getDate() // extract day of month
var this_month = this_date_timestamp.getMonth() // extract month
var this_year = this_date_timestamp.getYear() // extract year
var the_date = new Date();
var the_hour = the_date.getHours();
var the_minute = the_date.getMinutes();
var insec = the_date.getSeconds();
var theday = the_weekday[this_weekday];
var themonth = the_month[this_month];
document.write ("<B><font face=verdana size=1 color=#333333><CENTER>Today is "
+ theday + ", " + themonth + " " + this_date + ", " + 2006+ "<BR>");
document.write ("Your visit is appreciated" + "<BR>");
document.write (' + getHours + ", ' + getMinutes + ", " + getSeconds + "<BR>");
//-->
</SCRIPT>
Scoundral Guest
-
CFMX7.0.1 Administrator date time issue showing 13hrsbehind server time
I am running a W2k SP4 box that has been upgraded from CFMX6 to CFMX7.0.1. The CFMX7.0.1 server is showing the date on the Server Settings >... -
Date/time formatted input script controls
We are glad to present DTM project, a library of client-side script controls for formatted input of date and time (and other formats in the future).... -
Dynamic self-advancing slide show
I am adapting an old laptop to a picture frame which will run off of a wireless network and be hung on the wall to display, for the majority of the... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
Time/Date format and changing time to GMT
Hi All, Sorry if this is the wrong newsgroup to post into, on this topic, if so, please point me in the right direction..... Currently working...



Reply With Quote

