Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    230
    Tokens
    0

    Default Would this be possible .... ?

    I'm not sure if anyone knows of a way to do it, but is it possible that I could alter a web page to have a picture appear / disappear at pre-set times without me having to do it manually. So for example, if I'm asleep but I want this picture to appear at 3 in the morning without waking up. Any thoughts ?

  2. #2
    Join Date
    Mar 2009
    Posts
    215
    Tokens
    0

    Default

    Try this:

    PHP Code:
    <?php
    $time 
    date('H:i');
    $time_start '19:00'// Time you want the picture displayed from.
    $time_end '21:00'// Time you want the picture to stop being displayed.
     
    if($time $time_start && $time $time_end) {
    ?>
    <img src="path/to/picture.png">
    <?php ?>
    That should get you started
    GeekSRV - UK Shared & Reseller Hosting Solutions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •