nell'header del mio blog (http://www.nourdine.org) c'è un link "options" che richiama un javascript che fa scendere un div il quale conterrà presto alcuni controlli sul blog e qualche menu opzionale. Il problema sta nella lentezza con cui firefox esegue i comandi. Gli alri browser nn hanno problemi e vanno alla meraviglia. vi posto lo scrip:
codice:// settaggio variabili base var val = 90; var pos = "cala"; // nasconde il pannello opzioni usando un margin-top negativo window.onload = function(){ var opz = document.getElementById("opzioni"); opz.style.marginTop = "-" + val + "px"; // document.title = opz.style.marginTop; } function start(){ x = setInterval("showhide_opz()", 1); } function showhide_opz(){ if(pos == "cala"){ show_opz(); } else{ hide_opz(); } } function show_opz(){ var opz = document.getElementById("opzioni"); val = val - 2; if(val == 0){ pos = "sali"; window.clearInterval(x); } opz.style.marginTop = "-" + val + "px"; document.title = opz.style.marginTop + " - " + pos; // feedback } function hide_opz(){ var opz = document.getElementById("opzioni"); val = val + 2; if(val == 90){ pos = "cala"; window.clearInterval(x); } opz.style.marginTop = "-" + val + "px"; document.title = opz.style.marginTop + " - " + pos; // feedback }

