seany123 Posted January 13, 2009 Share Posted January 13, 2009 okay firstly i want to say that i have never practiced javascript in my life. (i dont know the boundries or possibilities of this language... What im wanting is for a digital time to be displayed on my website... but im wanting it to be a website time... so its say 06:03am for every person on the website. I also want the time to go up in minutes without having to refesh the page. (is this possible?) lastly is it possible to use PHP with these kind of "clocks"?? maybe store the time on a mysql database and make it update every minute? is this kind of thing possible? thanks for any help seany Link to comment https://forums.phpfreaks.com/topic/140597-javascript-website-clock/ Share on other sites More sharing options...
webster08 Posted January 13, 2009 Share Posted January 13, 2009 you would need to set your initial time with PHP; so it will give each person on your website the time in your time zone. then you would use the JavaScript Date() Object to increase the time based on ever second/minute/hour of end user's computer clock. Link to comment https://forums.phpfreaks.com/topic/140597-javascript-website-clock/#findComment-735964 Share on other sites More sharing options...
Psycho Posted January 13, 2009 Share Posted January 13, 2009 Take a look at this post that is 6 down from this one: http://www.phpfreaks.com/forums/index.php/topic,233619.0.html Link to comment https://forums.phpfreaks.com/topic/140597-javascript-website-clock/#findComment-735994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.