I've made you a script you can base ideas on.
Code:
<script type="text/JavaScript">
// script by cr3ative @ dynamicdrive.com/forums
var date = new Date();
var hours = date.getHours();
var display_time = (hours);
if (hours > 9 && hours < 19)
{
document.write("<img src='imagea.gif'>");
}
if (hours > 19)
{
document.write("<img src='imageb.gif'>");
}
else
{
alert("Data recieved could not be processed");
}
</script>
This way we use if else statements and a conditional, I think.
Script requires images imagea.gif and imageb.gif
cr3ative
Bookmarks