
18/06/2002, 03:54
|
| | Fecha de Ingreso: mayo-2002
Mensajes: 82
Antigüedad: 22 años, 10 meses Puntos: 0 | |
Re: Contador de visitas Ayer respondí a un mensaje q preguntaba exactamente lo mismo, ahí va el código:
En el GLOBAL.ASA
<script laguage="vbscript" runat="server">
Sub Session_onStart
End Sub
Sub Session_OnEnd
End Sub
Sub Application_OnStart
Application("visitas")= 0
End Sub
Sub Application_OnEnd
End Sub
</script>
Ahora en INDEX.ASP
<Html>
<head>
<title>Ejemplo contador de visitas</title>
</head>
<body>
<% application("visitas")= Application("visitas")+1%>
<b>Contador de visitas:<%=Application("visitas")%> ;</b>
</body>
</html>
Suerte ;) |