Hi, it has been many years since i have done any coding at uni, trying to make something for work where it checks the day and time and then dispalys text depending on that on the webpage. i could be no where near the right thing i have no idea
<strong class="GeneratedText"> <script type="text/javascript"> document.write("<p>"); var day = new Date(); var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; var d = weekday[day.getDay()]; var hr = day.getHours(); if ( d == "Monday" || d == "Tuesday" || d == "Wednesday" || d == "Thursday")) { document.write("Order By 1pm, We Can Deliver Tomorrow!"); } else if (((hr == 13) || (hr == 23)) && ( d == "Thursday")) { document.write(" Order By 1pm Friday, We Can Deliver Monday!"); } else if (((hr == 00) || (hr == 12)) && ( d == "Friday")) { document.write(" Order By 1pm Friday, We Can Deliver Monday!"); } else if (((hr == 13) || (hr == 23)) && ( d == "Friday")) { document.write(" Order By 1pm Monday, We Can Deliver Tuesday!"); } else if ( d == "Saturday" || d == "Sunday")) { document.write("Order By 1pm Monday, We Can Deliver Tuesday!"); } document.write("</p>"); </script> </strong>