Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2009, 15:50
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 18 años, 7 meses
Puntos: 1
Pregunta Respuesta: contador que se incrementa con los clic

este el codigo original ... pero no funciona .. no linkquea y la variable se queda en cero ..

contador.txt
Código:

1. clics=0



edit_contador.php
Código:

1.
2. <?php
3. $name = "contador.txt";
4. $file = fopen($name,"w");
5. $txt = "clics=".stripslashes($HTTP_POST_VARS["new_clics"]);
6. fputs($file, $txt);
7. fclose($file);
8. ?>
9.



banner.swf
Código:

1.
2. banner.onPress = function(){
3. getURL("http://www.banner.com", "_blank");
4.
5. var txt = new LoadVars();
6. txt.load("contador.txt");
7. txt.onLoad = function(){
8. this.new_clics = ++this.clics;
9. this.send("edit_contador.php", this, "POST");
10. }
11. }
12.
__________________
"La vida sigue su curso, tú toma parte de ella."