Thanks for your really speedy responses!
I had a look at the xoogle module, but in the end it was easier to copy and paste the google html.
It works great (I wanted it to search the corporate website and not the intranet) - Thanks guys!
JMorris wrote:
Here's an amazingly simple PHP-based countdown timer I found. We chose to use this script over a Javascript version because we have a lot of dial-up visitors and adding more javascripts to the site was slowing it down.
Live demo (bottom-right block on homepage):http://cit.wvup.edu
Just paste the following code (exactly as shown) in a Custom PHP block and edit to suite:?>
<?
// enter target date below like this: "January 2, 2001"
$target = "February 10, 2006";
// enter string of what this start date is. $top_text appears above the counter, $bottom_text displays below the counter
$top_text = "There are ";
$bottom_text = "until the last day to apply to graduate in May!";
//--------------------------
$now = strtotime ("now");
$then = strtotime ("$target");
$difference = $then - $now;
$num = $difference/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
?>
<div style="font-weight:bold;" align="center"> <? echo $top_text ?><br />
<table border="0" cellspacing="0" cellpadding="0" style="color:#00CC00;font-size:10px;font-family:'Courier New', Courier, mono;border-top:2px solid #AAAAAA;border-right:2px solid #333333;border-bottom:2px solid #333333;border-left:2px solid #AAAAAA;background-color:#000;padding:0px;width:125px;">
<tr align="center" valign="middle">
<td><? echo $days ?></td>
<td>:</td>
<td><? echo $hours ?></td>
<td>:</td>
<td><? echo $mins ?></td>
</tr>
<tr align="center" valign="middle">
<td>Days</td>
<td>|</td>
<td>Hrs</td>
<td>|</td>
<td>Mins</td>
</table>
<? echo $bottom_text ?> </div>
<?
James