Hello all,
I am new to javascript and looking for some help. I have searched around different forums but my skills have not served me well to build a working script.
<script language="JavaScript">
var myDate = new Date();
/* hour is before noon */
if ( myDate.getHours() < 12 )
{
audio.play('audio1.mp3')
}
else /* Hour is from noon to 5pm (actually to 5:59 pm) */
if ( myDate.getHours() >= 12 && myDate.getHours() <= 17 )
{
audio.play('audio2.mp3')
</script>