Esempio di soluzione "didattica":
Se al banner e' collegato un link:codice:<script> oggi = new Date(); ora = oggi.getHours(); if (ora>=20 || ora<5) response.write('[img]sera.gif[/img]'); if (ora>=5 && ora<15) response.write('[img]mattino.gif[/img]'); if (ora>=15 && ora<20) response.write('[img]pomeriggio.gif[/img]'); </script>
ciaocodice:... if (ora>=5 && ora<15) { response.write('<a href="mattino.htm">'); response.write('[img]mattino.gif[/img]'); response.write('</a>'); } ...