Nuestro conocimiento compartido. Nuestro tesoro compartido. Wikipedia.
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 2 function boton1() {3  var m = document.getElementById('mensaje');4 5  var lista = ['zumo', 'leche', 'galletas', 'pollo', 'azucar'];6 7  var mi_html = '<ul>';8 9  for (var i=0; i<10; i++) {10  if (i!=2) {11  mi_html += '<li>'+lista[i]+'</li>';12  } else {13  mi_html += '<li>'+lista[i]+' (no quedan)</li>';14  }15  }16  17  mi_html += '</ul>';18  m.innerHTML = mi_html;19 }20 21 function boton2() {22  23  var a = 10;24  var b = 5;25  26  if ( (a == 10 && b = 6) || a==5) {27  28  }29  30 31  32  33  34  35 }36 37 


Este ShareCode tiene versiones:
  1. Soy el 1 Pues yo soy el 2... (24/04/2013)
  2. Soy el 1 Pues yo soy el 2... (24/04/2013)
  3. Soy el 1 Pues yo soy el 2... (24/04/2013)
  4. Soy el 1 Pues yo soy el 2... (24/04/2013)
Enlace
El enlace para compartir es: