I needed a JS that would change the content of these two div’s every day on a yearly basis. For example: on Jan 1 the date div would be “JAN 1” and the moto div would be some moto for Jan 1, then on January 2 the date and the moto changes but not randomly I have text for each of the 365 days. So just a example and I can fill out the rest. I thought JS but can be PHP on serverside if easier.
<div id="date"><h3>JAN 1</h3></div>
<div id="moto" align="center">Example Text.</div>
Just to humor your request I’ve provided a solution…like the other answers say, though: this is best done server-side.
With PHP: