Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/01/2002, 19:51
Avatar de Gurrutello
Gurrutello
 
Fecha de Ingreso: enero-2002
Ubicación: Ontario,Toronto [Canada]
Mensajes: 2.017
Antigüedad: 22 años, 3 meses
Puntos: 6
Re: Script De Contadores

aqui tienes otro pero cuenta por medio de cookies <pre> &lt;style&gt;
.counter{
background-color:black;
color:yellow;
font-weight:bold;
}
&lt;/style&gt;

&lt;SCRIPT&gt;
expireDate = new Date
expireDate.setMonth(expireDate.getMonth()+6)
jcount = eval(cookieVal(&quot;jaafarCounter&quot;))
jcount++
document.cookie = &quot;jaafarCounter=&quot;+jcount+&quot;;expires=& quot; + expireDate.toGMTString()

function cookieVal(cookieName) {
thisCookie = document.cookie.split(&quot;; &quot;)
for (i=0; i&lt;thisCookie.length; i++){
if (cookieName == thisCookie[I].split(&quot;=&quot;)[0]){
return thisCookie.split(&quot;=&quot;)[1]
}
}
return 0
}

function page_counter(){
for (i=0;i&lt;(7-jcount.toString().length);i++)
document.write('&lt;span class=&quot;counter&quot;&gt;0&lt;/span&gt;')
for (y=0;y&lt;(jcount.toString().length);y++)
document.write('&lt;span class=&quot;counter&quot;&gt;'+jcount.toString().c harAt(y)+'&lt;/span&gt;')
}

&lt;/SCRIPT&gt;
visitaste
&lt;script&gt;
page_counter(jcount);
&lt;/script&gt;
veces. </pre>


<a href="http://loencuentras.cjb.net"><img src="http://www.mundofree.com/homedesin/loencuentraslogo.gif" alt="Loencuentras.cjb.net" border="0"></a>