Displaying something at certain time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ysoussov@gmail.com

    Displaying something at certain time

    Hey Everyone,
    I was wondering is there a way to have something display on my
    webpage during business hours and then disappear when it is not
    business hours? it just needs to be a checkbox nothing fancy. I would
    also like it to display according to server time rather then client
    time.
  • Doug Gunnoe

    #2
    Re: Displaying something at certain time

    On Jan 3, 2:00 pm, "ysous...@gmail .com" <ysous...@gmail .comwrote:
    Hey Everyone,
        I was wondering is there a way to have something display on my
    webpage during business hours and then disappear when it is not
    business hours? it just needs to be a checkbox nothing fancy. I would
    also like it to display according to server time rather then client
    time.
    Since you are wanting to use server time, I think the only way to do
    this would be a server side script like php.

    Comment

    • Anthony Levensalor

      #3
      Re: Displaying something at certain time

      ysoussov@gmail. com said:
      Hey Everyone,
      I was wondering is there a way to have something display on my
      webpage during business hours and then disappear when it is not
      business hours? it just needs to be a checkbox nothing fancy. I would
      also like it to display according to server time rather then client
      time.

      You could conceivably get the time from SSI with:

      <!--#echo var="DATE_LOCAL " -->

      But that's if you're running Apache, and have Server Side Includes
      turned on. Most will have a facility for Server Side Includes, though I
      don't have a clue about MS server solutions.

      ~A!


      --
      anthony at my pet programmer dot com

      Comment

      Working...