PHP Code:
<?php
date_default_timezone_set('Europe/London'); // Change this depending on what timezone your in
$today = strtotime(date('Y-m-d'));
$start = strtotime(date('Y') . '-09-20');
$end = strtotime(date('Y') . '-11-05');
if($today >= $start && $today <= $end) { ?>
<img src="/images/purchasetickets_img.png" srcover="/images/purchasetickets_img_active.png" class="alignright" />
<?php
}
?>
Should do the trick. Don't know if it's the most efficient way to do it, but it works.
Displays the image if today's date meets the conditions, otherwise shows nothing. Any link you want to add to the image, or JavaScript, can be put in between the two curly braces.
Bookmarks