Javascript add different text to each minute of hour
Posted: 25 Aug 2020, 20:53
Hello Coursesweb I`m unknown with javascripts ????
I would like to add function minutes to this script
on each minute an diferent text added to the hour
Hope you can help me out....
I would like to add function minutes to this script
on each minute an diferent text added to the hour
Hope you can help me out....
Code: Select all
<SCRIPT>
day = new Date()
hr = day.getHours()
if (hr == 1) document.write("<font face='Verdana' color='blue' size='5'>After one .... not yet to bed?</font>")
if (hr == 2) document.write("<font face='Verdana' color='blue' size='5'>After two.... Wouldn`t you even go to sleep?</font>")
</SCRIPT>