Sorry, I got it wrong it doesn't work correctly, the time if statement is not working correctly:-
if (day_night<=20 || day_night > 7)
It needs to be 7am till 8pm (0700 to 2000),
again any help would be appreciated
Thanks people, I eventually managed to get it working - the codes below should anyone need it:-
<script type="text/javascript">
var current= new Date()
var day_night=current.getHours()
if (day_night<=20 || day_night > 7)
document.write("<img src='boatblueheader.jpg'>")
else
document.write("<img...
Hi People, I have spent seveearl hours trying to find a javascript code that will do the following:-
If the clients computer time is between 7am and 8pm it shows a particular image and if the computers time is between 8pm and 7am it dipslays a different image, The header will alter basically to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.