Display block of content on page for set amount of time PHP

UKSBD

Moderator
  • Dec 30, 2005
    13,034
    1
    2,835
    Anyone got the code or can point me in the right direction for doing this?

    I want to display some content on a page for just 1 minute every day
    The minute it will be displayed wants to be random (it can be based on server time)

    I preferably want 2 versions, one be based on a refresh the other not.

    ie.

    version 1: the content only displays if someone lands on the page during the minute

    version 2: if the person visits the page at 5:15 and the content is set to display at 5:18 the content still appears for 1 minute at 5:18 without them having to do a refresh

    TIA.
     
    D

    Deleted member 315707

    Agree with webdesires although V2 - if the content is not sensitive you could pass the time it should show into the page on render with the javascript just seeing if that time was reached. No call back required.

    Both are pretty simple.
     
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice