vedi se funziona una cosa del genere:
codice:
onClipEvent (load) {
function aggiorna() {
loadVariablesNum("ora.asp", 0, "POST");
if (_root.giorno == "sabato" and Math.floor(_root.ora.substring(0, 2)) == 13 and Math.floor(_root.ora.substring(3, 5)) >= 15 or
_root.giorno == "sabato" and Math.floor(_root.ora.substring(0, 2)) > 13 or
_root.giorno == "domenica" or _root.giorno == "lunedì" and Math.floor(_root.ora.substring(0, 2)) < 23 or
_root.giorno == "lunedì" and Math.floor(_root.ora.substring(0, 2)) == 23 and Math.floor(_root.ora.substring(3, 5)) < 50) {
_root.menu.inserisci._visible = false;
} else {
_root.menu.inserisci._visible = true;
}
}
reload = setInterval(aggiorna, 60000);
aggiorna();
}
l'ho scritto al volo, forse ci sono degli errori