Hello, I have pages that display the Date and Time with Javascript and I need to change the time so that it runs 2 hours later than my time no matter who is looking at the site (for example, people in Japan)
How can I use php to do this?
Here's the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bio-Med Proofreading, a Leading edge English Language Proofreading Company</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function clock(){
d = new Date();
day = d.getDay();
mon = d.getMonth();
date = d.getDate();
year = d.getFullYear();
hr = d.getHours();
min = d.getMinutes();
sec = d.getSeconds();
if(hr==0){ap=" AM";hr=12}
else if(hr <= 11){ap=" AM"}
else if(hr == 12){ap=" PM";hr=12}
else if(hr >= 13){ap=" PM";hr-=12}
if(min <= 9){min="0"+min}
if(sec <= 9){sec="0"+sec}
zday=new Array();
zday=["Sunday","Monday","T
uesday","W
ednesday",
"Thursday"
,"Friday",
"Saturday"
];
zmon=new Array();
zmon=["January","February"
,"March","
April","Ma
y","June",
"July","Au
gust","Sep
tember","O
ctober","N
ovember","
December"]
;
document.getElementById("c
lockDiv").
innerHTML=
" "+zmon[mon]+" "+date+", "+hr+":"+min+":"+sec+ap+""
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(p
arseInt(ap
pVersion)=
=4)) {
document.MM_pgW=innerWidth
; document.MM_pgH=innerHeigh
t; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_p
gW || innerHeight!=document.MM_p
gH) location.reload();
}
MM_reloadPage(true);
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"(
)");
else window.location = sndFile;
}
//-->
</script>
<style type="text/css">
<!--
a:link {
color: #0000CC;
}
a:visited {
color: #0000CC;
}
a:hover {
color: #000000;
}
a:active {
color: #000000;
}
.style3 {
font-family: Arial;
font-size: 14px;
}
body {
background-image: url(background/tan-stitche
d.gif);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style11 {color: #666666; font-weight: bold; font-size: 24px; font-style: italic; font-family: Arial; }
.style17 {color: #333333}
.style25 { font-family: Verdana;
font-weight: bold;
}
.style26 {
font-size: 9px;
font-weight: bold;
}
.style30 { font-family: Verdana;
font-size: 14px;
}
.style40 {font-size: 24px}
.style41 {font-weight: bold; font-size: 24px; font-family: Arial; color: #666666;}
.style42 {
font-weight: bold;
font-family: "Times New Roman", Times, serif;
font-size: 30px;
color: #000000;
font-style: italic;
}
-->
</style></head>
<body onload="clock();setInterva
l('clock()
',1000)">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="header/header2.jpg" width="780" height="125" border="0"></div></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td width="32%" rowspan="2" valign="top"><div align="center">
<table width="100%"
border="0" cellspacing="0" cellpadding="20">
<tr>
<td height="42" valign="top" ><h2 align="center"><span class="style30">This is our time, Pacfic Standard Time, USA: </span>
</h2>
<div id="clockDiv">
<h2 align="center"> </h2>
</div></td>
</tr>
</table>
<p><img src="menu/service.gif" width="213" height="267" border="0" align="top" usemap="#Map">
<map name="Map">
<area shape="rect" coords="25,209,191,234" href="samples.html">
<area shape="rect" coords="26,29,192,54" href="index.html" onMouseOver="MM_controlSou
nd('play',
'document.
CS11019673
93937','fi
le:///C|/D
ocuments%2
0and%20Set
tings/Owne
r/My%20Doc
uments/My%
20Music/Fr
om%20Inter
net/tick2.
wav')">
<area shape="rect" coords="25,65,191,90" href="service.html">
<area shape="rect" coords="25,139,191,164" href="turnaround.html">
<area shape="rect" coords="25,176,191,201" href="privacyguarantee.htm
l">
<area shape="rect" coords="24,101,190,126" href="price.html">
</map>
</p>
</div></td>
<td width="68%" height="58" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="58" valign="top"><pre class="style3"><span class="style11"><span class="style40"><img src="images/2.gif" width="40" height="40" align="absbottom"></span><
/span><spa
n class="style41"><span class="style40"><span class="style42"> Our Services</span></span></sp
an><span class="style11"><span class="style17">
<img src="images/BLUE-BAR.gif" width="240" height="3"></span></span><
/pre>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="left">
<p style="line-height: 150%"><span class="style3">BioMed Proofreading is a leading English language proofreading company located in the USA, focused on biomedical manuscripts, and made up of medical and life science professionals who are also authors and referees for peer-reviewed biomedical journals. All members of our staff hold either a PhD, MD, or both degrees, and are all native English speakers. Our goal is to provide competent professional English proofreading and editing services for biomedical researchers and clinical doctors around the world who are not native English speakers. Our services are fast, convenient (available seven days a week, 18-hour on-line response every day), accurate, affordable, and easy to use. We provide you with a competitive advantage, because our professional editors know how to structure your scientific manuscript so that your research will have the maximum impact. We check through the text, and make correctio<img src="images/doctor3-jpg.gi
f" width="133" height="200" align="right">ns or accurate revisions with attention to errors of grammar, spelling, punctuation, capitalization, inaccurate terms, consistency, logic of presentation, English usage, style and even spacing, in either British English or American English. In addition, we have the expertise to provide authors with practical comments on how to write more successful research manuscripts (<a href="samples.html">Seeing
is believing</a>). In one word, you write it, we finish it.</span></p>
</div></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="20">
<tr>
<td><P align="center" class="style25"> </P>
<P align="center" class="style25">CONTACT US:</P>
<div align="center">
<pre align="center"><FONT face="Arial, Helvetica" size=2>For questions regarding our services and manuscript submission: <FONT
face=Arial color=#000099><A
href="mailto:info@bmp-us.n
et">info@b
mp-us.net<
/A></FONT>
<FONT
face=Arial>.</FONT></font>
<FONT
face="Arial, Helvetica" size=2>For question regarding payment: <A
href="mailto:biomed@bmp-us
.net">biom
ed@bmp-us.
net</A>.</
font><FONT
size=2> </FONT>
<FONT face=Arial size=2>Fax: 1-801-858-7952.
</FONT><FONT face="Arial, Helvetica" size=2>Mail address:<B><I> BioMed Proofreading,</I></B> P.O. Box 606041, Cleveland, Ohio 44106-9998, USA
.
</FONT><span class="style26" style="font-family: Arial"><A name="Certificate Number">Certificate Number</A>: 1383229, State of Ohio, United States of America
Copyright (C) 2003-2004, BioMed Proofreading. All rights reserved.</span></pre>
</div></td>
</tr>
</table>
<EMBED NAME='CS1101967393937' SRC='file:///C|/Documents%
20and%20Se
ttings/Own
er/My%20Do
cuments/My
%20Music/F
rom%20Inte
rnet/tick2
.wav' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>
Start Free Trial