Changing by Time

This is a discussion on Changing by Time within the Tech Board forums, part of the Community Boards category; Ok, I'm pretty good with html and javascript, as I have been using it for the past 5 years, but ...

  1. #1
    Registered User webturtle0's Avatar
    Join Date
    Nov 2002
    Posts
    76

    Wink Changing by Time

    Ok, I'm pretty good with html and javascript, as I have been using it for the past 5 years, but there's something I wanted to do that I've never even heard of before, and I'm not sure that it's even possible. Here it is:

    I want a page on the website to change according to the visitor's time. Like from 6am it'll be one page until 7pm, then it'll change, and then it'll just keep repeating like that every day according to the visitor's time. If you want to know what I want to change, it's this page: http://www.dreamora.com/home. I want the borders to be a lighter shade of blue during the day, and a darker shade of blue (like what is already there) during the night (I know that I will probably have to make a separate page with the different shades of blue, but I need to figure out to have it automatically change the pages every day). If anyhing can help it would be greatly appreciated. Thanks!
    "Yo"

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    you've been doing it 5 years and haven't learned how to look up functions on google?

    http://www.quirksmode.org/js/introdate.html
    PHP and XML
    Let's talk about SAX

  3. #3
    Registered User webturtle0's Avatar
    Join Date
    Nov 2002
    Posts
    76
    I looked, but I'm not entirely sure what to look for either. But I did think people would be generous enough to help me on here. My mistake. I wonder what this board is for anyway...

    Sorry for wasting your time...
    "Yo"

  4. #4
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Give it a little time... maybe someone on here will know the answer. I can't help you much, but I can't imagine it's all that hard. And you shouldn't have to make seperate pages... at worst, you could make different CSS files and use different ones for different times.

    If I was doing this, however, I'd use PHP, not worry about what the user's time is and include different CSS files depending on what the server time is. It kinda screws the effect for anyone that is a few time zones away from your server, but it'd be easier. And besides... until you make your site readable, I doubt you'll get much traffic anyways. Dark blue on black?? What gives? I have decent eyes and I get a headache after a few minutes.

    Oh... and just a few small tips for the future:

    1) Don't brag about how long you've been using something and then ask a fairly trivial question... especially one that can be solved by a simple google search.
    2) Waldo did help you, and not STFW will lead to flames. We're not here to do your work for you, we're only here to help you when you get stuck. Besides, this isn't exactly a web design board. Try a few of these: www.vbforums.com (XML, HTML, Javascript, Web and CGI) or www.phpfreaks.com.

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    >> But I did think people would be generous enough to help me on here. My mistake. I wonder what this board is for anyway...

    wow dude. Do something for yourself for christs sake. I gave you a great link, even though it was a simple google search. And oh yeah, this comes from the first line of the web page in the link i gave you: "This page describes the basics of date and time scripting..."

    what the hell else do you want? to hold your hand?
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 10-07-2008, 01:09 PM
  2. Execution Time - Rijandael encryption
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-20-2008, 10:25 PM
  3. Read and set\change system time
    By Hexxx in forum C++ Programming
    Replies: 9
    Last Post: 01-02-2006, 07:11 AM
  4. calculating user time and time elapsed
    By Neildadon in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2003, 06:00 PM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21