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<html>
<head>
<script type="text/javascript">
var video=new Array()
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
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>';
var F = video.length;
var cont = 0;
function mostrarvideo(){
tuDiv = document.getElementById('tuDiv');
if (cont <= F) {
tuDiv.innerHTML = video[cont++];
} else {
tuDiv.innerHTML = video[0];
cont = 0;
}
}
</script>
</head>
<body>
<input type="button" value="Otro vídeo" onclick="mostrarvideo();"/>
<div id="tuDiv"></div>
<script type="text/javascript">
mostrarvideo();
</script>
</body>
</html>
Suerte