Ver Mensaje Individual
  #27 (permalink)  
Antiguo 18/06/2010, 07:33
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 17 años, 10 meses
Puntos: 126
Respuesta: Ordenado, en vez de aleatorio

Hola

¿Aún estamos así?

A buscar las dos diferencias. A quién las encuentre, le enviaré un 1Kg de gamusinos

Código Javascript:
Ver original
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. var video=new Array()
  5. video[0] = '<object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/d611hmkk_uY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/d611hmkk_uY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  6. video[1] = '<object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/0zBclMiMZEY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0zBclMiMZEY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  7. video[2] = '<object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/FPZxR9E8an0&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/FPZxR9E8an0&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  8. video[3] = '<object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/Z6W75bm8S70&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Z6W75bm8S70&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  9. video[4] = '<object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/xEqHSp8Jqok&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/xEqHSp8Jqok&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  10. video[5] = '<object width="658" height="405"><param name="movie" value="http://www.youtube.com/v/xatHxSiTSWg&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/xatHxSiTSWg&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object>';
  11. video[6] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/zUJiU-o_kEk&hl=es_ES&fs=1&rel=0&color1=0x234900&color2=0 x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zUJiU-o_kEk&hl=es_ES&fs=1&rel=0&color1=0x234900&color2=0 x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  12. video[7] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/nrTiuKUPbpg&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nrTiuKUPbpg&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  13. video[8] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/j7Ve-g1Zqp0&hl=es_ES&fs=1&rel=0&color1=0x234900&color2= 0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/j7Ve-g1Zqp0&hl=es_ES&fs=1&rel=0&color1=0x234900&color2= 0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  14. video[9] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/Q5XbLyCCs-g&hl=es_ES&fs=1&rel=0&color1=0x234900&color2=0x4e9 e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Q5XbLyCCs-g&hl=es_ES&fs=1&rel=0&color1=0x234900&color2=0x4e9 e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  15. video[10] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/2zWZ-2B83Yo&hl=es_ES&fs=1&rel=0&color1=0x234900&color2= 0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2zWZ-2B83Yo&hl=es_ES&fs=1&rel=0&color1=0x234900&color2= 0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  16. video[11] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/6SCK8KXvDcY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/6SCK8KXvDcY&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  17. video[12] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/l57iLd6y1NE&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/l57iLd6y1NE&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  18. video[13] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/gHbZwDfi198&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/gHbZwDfi198&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  19. video[14] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/3Xn8UXqgVWo&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3Xn8UXqgVWo&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  20. video[15] = '<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/WkUJZCyk4AU&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WkUJZCyk4AU&hl=es_ES&fs=1&rel=0&color1=0x234900&co lor2=0x4e9e00&hd=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>';
  21. video[16] = '<object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/K39DzmzL9xI&hl=es_ES&fs=1&rel=0&color1=0x5d1719&co lor2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/K39DzmzL9xI&hl=es_ES&fs=1&rel=0&color1=0x5d1719&co lor2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object>';
  22. var F = video.length;
  23. var cont = 0;
  24. function mostrarvideo(){
  25. tuDiv = document.getElementById('tuDiv');
  26.  if (cont <= F) {
  27.   tuDiv.innerHTML = video[cont++];
  28.  } else {
  29.   tuDiv.innerHTML = video[0];
  30.   cont = 0;
  31.  }
  32. }
  33. </script>
  34. </head>
  35. <body>
  36. <input type="button" value="Otro v&iacute;deo" onclick="mostrarvideo();"/>
  37. <div id="tuDiv"></div>
  38. <script type="text/javascript">
  39. mostrarvideo();
  40. </script>
  41. </body>
  42. </html>

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />