Archive for myfreeforum.org Before posting please check the "stickies" in the support forums. Please ask questions in real English and not "txt". You will get a better response. Please do not ask support questions via PMs.
|
BEWARE OF SCAMMERS ASKING FOR ADMIN ACCESS. WE NEVER ASK FOR ACCESS.

Sitaram
|
World Clock (add just the cities you need)World Clock
The above is just an example with four cities around the world.
http://www.timeanddate.com/worldclock/fixedform.html
World Clock in fixed format showing all cities around the world at once, relative to a given fixed time in one city.
|
Sitaram
|
Here is a different kind of clock
http://www.arachnoid.com/lutusp/worldclock.html
|
Sitaram
|
Free, Modifiable Java Code World ClockI added to the table using this GMT list
http://support.3com.com/infodeli/...0/s_ware1_5/sys_man2/atimezon.htm
and checked the accuracy using
http://www.timeanddate.com/worldclock/
Not always 100% accurate, but pretty good.
Place the following code in the BODY portion of any html page.
The browser must support java for it to work
I tested it out at the same page where I first tested out my CBOX.
http://toosmallforsupernova.org/cbox.htm
| Code: |
<table border="0" width="200" cellspacing="0" cellpadding="3">
<form name="where">
<tr>
<td width="100%">
<select name="city" size="1" onchange="updateclock(this);">
<option value="" selected>Local time</option>
<option value="-11">American Samoa</option>
<option value="7">Bangkok</option>
<option value="-6">Belize</option>
<option value="-4">Bahamas</option>
<option value="-3">Buenos Aires</option>
<option value="-11">Canton Enderbury Islands</option>
<option value="-8">Canada Yukon and Pacific</option>
<option value="-5">Cayman Islands</option>
<option value="-10">Christmas Islands</option>
<option value="-5">Colombia</option>
<option value="-6">Costa Rica</option>
<option value="-4">Canada Eastern</option>
<option value="-5">Canada Central</option>
<option value="-4">Cuba</option>
<option value="-10">Cook Islands</option>
<option value="-6">El Salvador</option>
<option value="-5">Easter Island</option>
<option value="-5">Ecuador</option>
<option value="12">Fiji</option>
<option value="-10">French Polynesia</option>
<option value="-4">Haiti</option>
<option value="8">Hong Kong</option>
<option value="-12">Kwajalein</option>
<option value="0">London GMT</option>
<option value="-11">Midway Island</option>
<option value="-11">Niue Island</option>
<option value="-10">Hawaii</option>
<option value="-5">New York</option>
<option value="-5">Galapagos Islands</option>
<option value="-6">Guatemala</option>
<option value="-6">Honduras</option>
<option value="-5">Jamaica</option>
<option value="-9.5">Marquesas Islands</option>
<option value="-6">Mexico</option>
<option value="-8">Mexico Nayarit</option>
<option value="-8">Mexico Sinaloa</option>
<option value="-8">Mexico Sonora</option>
<option value="-8">Mexico Baja Calif Norte</option>
<option value="12">New Zealand</option>
<option value="-5">Nicaragua</option>
<option value="-5">Panama</option>
<option value="-5">Peru</option>
<option value="1">Rome</option>
<option value="-8">San Francisco</option>
<option value="-11">Samoa</option>
<option value="10">Sydney</option>
<option value="-10">Tahiti</option>
<option value="9">Tokyo</option>
<option value="-4">Turks and Caicos Islands</option>
<option value="-4">USA Eastern</option>
<option value="-5">USA Indiana East</option>
<option value="-5">USA Central</option>
<option value="-10">USA Aleutian</option>
<option value="-8">USA Arizona</option>
<option value="-8">USA Pacific</option>
</select>
</td>
</tr>
<tr>
<td width="100%">
<script language="JavaScript">
/*
Drop Down World Clock- By JavaScript Kit (http://www.javascriptkit.com)
Portions of code by Kurt @ http://www.btinternet.com/~kurt.grigg/javascript
This credit notice must stay intact
*/
if (document.all||document.getElementById)
document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')
zone=0;
isitlocal=true;
ampm='';
function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}
function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toLowerCase();
hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2
var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}
setTimeout('WorldClock()',1000);
}
window.onload=WorldClock
//-->
</script>
<!--Place holder for NS4 only-->
<ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>
<font face="arial" size="-2">This free script provided by <a href="http://www.javascriptkit.com">JavaScript Kit</a></font>
</td>
</form>
</tr>
</table>
|
|
Sitaram
|
I am going to experiment with putting the javascript world time routine (above) into the footer of my http://www.voicesofafricaunited.myfreeforum.org
It should work! And I have one forum for each African nation, which includes the GMT in the brief description.
|
Sitaram
|
Yes indeed! I just added the javascript time routine to the footer of my message board and it works just fine.
|
|
|
|