Ver Mensaje Individual
  #11 (permalink)  
Antiguo 17/06/2010, 06:33
DavidBL
 
Fecha de Ingreso: diciembre-2009
Ubicación: España
Mensajes: 380
Antigüedad: 14 años, 11 meses
Puntos: 1
Respuesta: Ordenado, en vez de aleatorio

pues no se si es que he hecho algo mal, pero no me va,pero tampoco salen errores.
Tengo el head asi:
Cita:
<script language="JavaScript">
var video=new Array()
video[0] = 'unvideo';
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=0x4 e9

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=0x4 e9

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;
cont = 1;
function mostrarvideo() {
document.getElementById('eldiv').value =
'imaduff';
}
</script>
Y el body asi:
Cita:
<p style="text-align: center">
<div id="eldiv"></div>
<input type="button" value="Otro video"
onclick="mostrarvideo();"/>