Advertisement
NameL3ss

consejo?

Jul 28th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Click en: type="button"
  2. class="botonlisto"
  3. en el evento onclick="newDoc()"
  4. Nos lleva a la funcion NewDoc();
  5. function newDoc() {
  6. var items = Array(1,2,5,6);
  7. var item = items[Math.floor(Math.random()*items.length)];
  8. var ale = Math.floor(Math.random()*7+1);
  9. var fianza = $("input#nombre").val();
  10. window.location="http://comoeres.rysnoticias.com/sabio/resultado/"+ale+"/"+fianza;
  11. }
  12. Prueba con:
  13. http://comoeres.rysnoticias.com/sabio/resultado/un_numero_del_1_al_7/una_palabra
  14. eje:
  15. http://comoeres.rysnoticias.com/sabio/resultado/7/palabra
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement