Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2002, 23:25
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 de visitas sencillo

mira aqui tienes uno
<%
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>

</center>
</TD>
</TR>
</TABLE>
%>

nada mas tiene que crear un archivo de texto y colcarle 1

saludos

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