Tema: contador
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/08/2002, 10:28
Avatar de ElAprendiz
ElAprendiz
 
Fecha de Ingreso: enero-2002
Ubicación: Maipu, Chile
Mensajes: 3.706
Antigüedad: 23 años, 3 meses
Puntos: 2
Re: contador

aqui tienes un mini contador con un archivo de texto


Dim fp, Fs,a,ct
fp = Server.MapPath("aspcount.txt")
Set fs = CreateObject("Scripting.FileSystemObject&quot ;)
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
if Session("ct") = "" then
Session("ct") = ct
ct = ct + 1
a.close
Set a = fs.CreateTextFile(fp, True)
a.WriteLine(ct)
end if
a.Close
%><TABLE width="100%">
<TR>
<TD align="Center"><center>
<b> a esta pagina se ha accedido <%=ct%> veces</b>
</tr>
</table>

<center><IMG SRC="http://www.550m.com/usuarios/altolacruz/aprendiz3.gif" ALT="Visitame en AlSurNet.com -- E-Learning E-Commerce Multimedia E-Business--"></center>