Ciao a tutti.
esco dal 'lurk' per chiedere aiuto.
Ho scaricato dal web un mini-sito che serve a fare
degli esercizi per chi è affetto da strabismo/ambliopia.
ho una bimba di 8 anni che dall'età di 3 fa questo esercizio
con qualche risultato positivo.
Con explorer tutto va bene ma non funziona con
Firefox e sopratutto Opera.
Potreste aiutarmi a capire cosa non funziona?
Mi sembra di capire che la funzione "gorandomurl"
generi URL random che non vengono interpretate
da Firefox e Opera.
molte grazie.
MM
questo è il sorgente:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Stimolo</title>
<base target="_self">
<TITLE>Esempi Javascript: </TITLE>
</head>
<script language=JavaScript>
<!--
function gorandomurl(){
day = new Date();
hr = day.getSeconds();
if ((hr >= 0) && (hr <= 15)) {
randomURL = "stimolo1A.html";
}
if ((hr > 15) && (hr <= 30)) {
randomURL = "stimolo1B.html";
}
if ((hr > 30) && (hr <= 45)) {
randomURL = "stimolo1C.html";
}
if ((hr > 45) && (hr <= 60)) {
randomURL = "stimolo1D.html";
}
location = randomURL;
}
// -->
</script>
<BODY bgcolor="#000000" text="#000000">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"><input type=button name=b1 value="Inizia stimolazioni Pattern - Flicker" onclick=gorandomurl();></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
</table>
</center>
</div>
</p>
<p style="word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"></p>
</BODY>
</HTML>

Rispondi quotando
