I'm trying to make a webpage that shows your PC's set timezone
How can I get the Timezone in my PC using PERL? or JavaScript?
%26lt;!-- TWO STEPS TO INSTALL BASIC CLOCK:
1. Add the onLoad event handler into the BODY tag
2. Copy the coding into the BODY of your HTML document --%26gt;
%26lt;!-- STEP ONE: Insert the onLoad event handler into your BODY tag --%26gt;
%26lt;BODY onLoad="clock()"%26gt;
%26lt;!-- STEP TWO: Paste this code into the BODY of your HTML document --%26gt;
%26lt;!-- Adjust the placement of the clock in the line below --%26gt;
%26lt;span id="pendule" style="position:absolute;left:300;top:20...
%26lt;SCRIPT LANGUAGE="JavaScript"%26gt;
function clock() {
if (!document.layers %26amp;%26amp; !document.all) return;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours %26gt; 11) amOrPm = "PM";
if (hours %26gt; 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes %26lt;= 9) minutes = "0" + minutes;
if (seconds %26lt;= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;
if (document.layers) {
document.layers.pendule.document.write...
document.layers.pendule.document.close...
}
else
if (document.all)
pendule.innerHTML = dispTime;
setTimeout("clock()", 1000);
}
%26lt;/script%26gt;
Hope this helps!!!
flower arrangement
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment