Ciao.
Sto provando a cambiare ogni tot di tempo il css generando un numero random. Non riesco a farlo funzionare però. Qualcuno ha dei suggerimenti in merito???
grazie e ciaoooo
Codice HTML:<script> function test(sheet) { document.getElementById('pippo').setAttribute('href', sheet) } var n = Math.floor((Math.random() * 100) + 1); if (n <= 33) { test('file2.css'); } else if ((n >34) && (n <67)) { test('file1.css'); } else if ((n >=68) && (n <=100)) { test('file.css'); } document.write(n); window.setInterval(function test(sheet), 3000); </script>

LinkBack URL
About LinkBacks
