Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/12/2015, 15:59
edgaralcalaserra
 
Fecha de Ingreso: octubre-2015
Ubicación: ciudad juarez
Mensajes: 90
Antigüedad: 8 años, 7 meses
Puntos: 1
Respuesta: variable de php

no se si valla bien

Código Javascript:
Ver original
  1. <?php
  2. html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.  
  7. <script type="text/javascript">
  8. //<![CDATA[
  9. var variable1 = 0;
  10. function sumar() {
  11. variable1 +=1;
  12.   // mostrar el valor de variable1
  13. document.getElementById('valor').innerHTML = variable1;
  14. }
  15. $( document ).ready(function{
  16.     var meta= variable1;
  17.     $("#embo").load("linea1.php",{emboninado1:meta}):
  18. });
  19. }
  20. </script>
  21. </head>
  22. <body onload="setInterval('sumar()',3000)">
  23. <body>
  24. </html>
  25. ?>