Dans l'exemple suivant, on explique comment gérer un affichage de citation de manière aléatoire...
Comment faire pour afficher une citation non pas de manière aléatoire mais 1 différente par jour !!!
est ce possible et si oui, comment
D'avance Merci
<%
Set objFile = Server.CreateObject("Scripting.FileSystemObject")
Set objStream = objFile.OpenTextFile(Server.MapPath("/citations") & "\citations.txt")
Randomize Timer
intCit = Int(Rnd * 5)
For i = 0 to intCit
objStream.SkipLine
Next
strCit = objStream.ReadLine
objStream.Close
Set objStream = Nothing
Set objFile = Nothing
%>