![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/01/2002, 19:51
|
![Avatar de Gurrutello](http://static.forosdelweb.com/customavatars/avatar13376_2.gif) | | | Fecha de Ingreso: enero-2002 Ubicación: Ontario,Toronto [Canada]
Mensajes: 2.017
Antigüedad: 23 años Puntos: 6 | |
Re: Script De Contadores aqui tienes otro pero cuenta por medio de cookies <pre> <style>
.counter{
background-color:black;
color:yellow;
font-weight:bold;
}
</style>
<SCRIPT>
expireDate = new Date
expireDate.setMonth(expireDate.getMonth()+6)
jcount = eval(cookieVal("jaafarCounter"))
jcount++
document.cookie = "jaafarCounter="+jcount+";expires=& quot; + expireDate.toGMTString()
function cookieVal(cookieName) {
thisCookie = document.cookie.split("; ")
for (i=0; i<thisCookie.length; i++){
if (cookieName == thisCookie[I].split("=")[0]){
return thisCookie.split("=")[1]
}
}
return 0
}
function page_counter(){
for (i=0;i<(7-jcount.toString().length);i++)
document.write('<span class="counter">0</span>')
for (y=0;y<(jcount.toString().length);y++)
document.write('<span class="counter">'+jcount.toString().c harAt(y)+'</span>')
}
</SCRIPT>
visitaste
<script>
page_counter(jcount);
</script>
veces. </pre>
<a href="http://loencuentras.cjb.net"><img src="http://www.mundofree.com/homedesin/loencuentraslogo.gif" alt="Loencuentras.cjb.net" border="0"></a> |