![]() |
Seminario
introduttivo |
1999 Roberto Anzellotti - CASPUR |
L'esempio seguente è L'Oracolotto, un Oracolo che suggerisce 5 numeri da giocare al lotto.
Questo esempio (contenente un Baco):
Visualizza l'ora
Saluta il visitatore sfruttando l'ora per dirgli Buongiorno o Buonasera
Genera 5 numeri casuali da giocare al lotto
| <HTML> <HEAD> <TITLE>L'ORACOLOTTO</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <div align="center"><center> <b>L'oracolotto</b> <br> <big><font color="#FF0000"> <strong>Bacato</strong> </font></big><br> <strong> <%=time()%> <br> <%if time()<#1:00:00 PM# then x="Buongiorno " else x="Buonasera "%> <%=x %>a te, o prode. <br> La tua richiesta di aiuto mi è giunta e <br> la magica cinquina che ti indico è: </font></strong></p> <div align="center"><center> <TABLE border="1" width="50%" align="Center"> <TR width="20%">
</TR> |
<HTML> <HEAD> <TITLE>L'ORACOLOTTO</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <div align="center"><center> <b>L'oracolotto</b> <br> <big><font color="#FF0000"> <strong>Bacato</strong> </font></big><br> <strong> 1:52:34 PM <br> Buonasera a te, o prode. <br> La tua richiesta di aiuto mi è giunta e <br> la magica cinquina che ti indico è: </font></strong></p> <div align="center"><center> <TABLE border="1" width="50%" align="Center"> <TR width="20%"> <TD><center>1</center></TD> <TD><center>29</center></TD> <TD><center>16</center></TD> <TD><center>62</center></TD> <TD><center>50</center></TD> <TR> |
NOTA BENE: Questo codice contiene un errore poichè è possibile estrarre più volte lo stesso numero.