|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Jul 2005
Location: Goshen, NY
Posts: 133
|
Display Local time of User on Web Page
Quite some time ago, after gathering many bookmarks of Computer Talk Radio shows, I put together a web site listing those shows. I currently have the shows that stream listed hourly, using US Eastern Time. Is there a way the local user could insert his time zone and have the hourly listings change accordingly. http://www.angelfire.com/rnb/moodybl.../indexsat.html
This is my first and only attempt at a web site and the fact of the matter is, this started out as a template. I have learned quite a bit, but just enough to get by. The page barely resembles the original template, but it also is not as slick as many of the sites that are professionally put together. My main goal was to make a consolidate listing of Computer Radio shows that stream, and hopefully keep the info current and easy to navigate. The time zone thing has bothered me ever since I put this together 4 or 5 years ago, but I have never found a good solution, other than the inclusion of world times at the top of the page. Thoughts or suggestions would be appreciated. |
|
|
|
|
|
#2 | ||
|
Foldin' For PCMech!
|
I would think it would have to be done in either Javascript or with PHP. I dont remember if geocities has php or not so javascript might be your best bet. As for the actual script, I cant help ya there, i'm no programmer!
__________________
Eric
|
||
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Jul 2005
Location: Goshen, NY
Posts: 133
|
I have been searching sites for some script, but the best I could find was putting up the current time in several time zones. I would like to have the visitor choose their local time zone and automatically have the hourly listings updated to reflect their time zone rather than the Eastern time I have it listed as.
I am no programmer also, so I would not even know where to start writing some script. Thanks for the response though. |
|
|
|
|
|
#4 |
|
~ Ryan ~
|
PHP Code:
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom! |
|
|
|
|
|
#5 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
Javascript might work for what you want to do, but PHP is going to be a better fit.
Put a drop down on your form with the value attribute equal to the number of hours to adjust the time respective to the server (1, 2, -1, 0, etc.) and the display value equal to the time zone name (Eastern, Central, etc.). Then your PHP code would look something like this: PHP Code:
|
|
|
|
|
|
#6 |
|
Member (8 bit)
Join Date: Jul 2005
Location: Goshen, NY
Posts: 133
|
Thanks for the replies. As I mentioned previously, I am no wiz when it comes to code for a web page. With regard to the PHP code, I am a little unclear about exactly how to lay out this dropdown box. My ultimate goal is to adjust the hourly listings on the page to the corresponding local time. For example, I currently have it listed by Eastern time, where it currently states the shows that stream at say 1:00. I would like someone in the Central time zone to automatically display 12:00 (or the appropriate time for any time zone) How, if at all , will this drop down achieve that?
Last edited by moodyblues100; 11-10-2006 at 04:11 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Acronyms | Floppyman | Computer Hardware | 156 | 06-18-2006 06:25 AM |
| Windows services list | snooker | Windows Legacy Support (XP and earlier) | 0 | 06-27-2004 11:05 PM |
| Web Page e-mail issues | DanHocker | Web Design / Development | 0 | 04-25-2003 03:41 PM |
| Web page help | Planenuts | Internet, Web Applications, & The Cloud | 9 | 02-22-2003 10:52 AM |
| Building my first web page | FireStick | Internet, Web Applications, & The Cloud | 9 | 12-23-2002 09:32 AM |