Código PHP:
$tiempo = date("G");
$imagen[1]= "<a href=# > </a>";
$imagen[2]="<a href=#> </a>";
if($tiempo >= "11" and $tiempo <= "15") // Nos fijamos si está entre las horas correspondientes
{
echo $imagen[1] ; // Mostramos el mensaje
}
elseif($tiempo > "21" and $tiempo <= "23")
{
echo $imagen[2];
}
?>