displaying current time on web page

User 24161 Photo


Ambassador
12 posts

I have the following code to get current time on my online home page
<span><strong>
<a href="http://24timezones.com/world_directory/current_las_vegas_time.php" style="text-decoration: none" target="_BLANK" title="local current time Las Vegas">Time in Las Vegas</a> - <span id="tzTimeSpan_ee50f6caac84aa8"></span>
<script type="text/javascript" src="http://24timezones.com/js/en/time_24_1_1.js"></script>
<script src="http://24timezones.com/timescript/gettime.js.php?city=127&hourtype=24&showdate=1&showseconds=1&id=1087420&elem=ee50f6caac84aa8" language="javascript"></script>
</strong></span>
the problem is it does not display the time.
Rosaliy Lynne
------------------------------------
We become what we must.

You can usually tell an ignorant person BUT you usually can't tell him much.
User 2699991 Photo


Registered User
5,014 posts
Online Now

It works for me here, so the script is right,, it must be to do with your page set up
https://mawarputih.coffeecup.com/albums/time-date.png
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://mawarputih.coffeecup.com/forms/contact-wayan/

A simple quick way to contact me
https://rsd-tutorialscom.coffeecup.com/ … l-details/
User 187934 Photo


Senior Advisor
20,227 posts
Online Now

It may need to be https on your server.
<span><strong>
<a href="https://24timezones.com/world_directory/current_las_vegas_time.php" style="text-decoration: none" target="_BLANK" title="local current time Las Vegas">Time in Las Vegas</a> - <span id="tzTimeSpan_ee50f6caac84aa8"></span>
<script type="text/javascript" src="https://24timezones.com/js/en/time_24_1_1.js"></script>
<script src="https://24timezones.com/timescript/gettime.js.php?city=127&hourtype=24&showdate=1&showseconds=1&id=1087420&elem=ee50f6caac84aa8" language="javascript"></script>
</strong></span>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.