heinzdmx, tak for dit javascript, jeg er ved at arbejde med det nu. Jeg har uploadet mine film i youtube og bruger scriptet til at tilfældigt vælge mellem 5 playlister, MEN det virker ikke i explorer og chrome.
Jeg tror måske at det skal tilpasses lidt mere når jeg bruger embedded video, men jeg er i tvivl om hvordan?
Her er min kode indtil nu:
<script language="JavaScript">
<!--
var r_text = new Array ();
r_text[0] = <object width="416" height="337">
<param name="movie" value="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdjJghr0_dP9HSiOiubUUNi0=?autoplay=1"></param><param name="autoplay" value="1"></param>
<param name="loop" value="1"></param>
<embed src="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdjJghr0_dP9HSiOiubUUNi0=?autoplay=1" type="application/x-shockwave-flash" width="416" height="337"></embed></object>;
r_text[1] = <object width="416" height="337">
<param name="movie" value="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdn8xhdlhkMDMllZq2GCdh80=?autoplay=1"></param><param name="autoplay" value="1"></param>
<param name="loop" value="1"></param>
<embed src="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdn8xhdlhkMDMllZq2GCdh80=?autoplay=1" type="application/x-shockwave-flash" width="416" height="337"></embed></object>;
r_text[2] = <object width="416" height="337">
<param name="movie" value="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdvjvOv5DJuqB1W4xSnDUDtM=?autoplay=1"></param><param name="autoplay" value="1"></param>
<param name="loop" value="1"></param>
<embed src="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdvjvOv5DJuqB1W4xSnDUDtM=?autoplay=1" type="application/x-shockwave-flash" width="416" height="337"></embed></object>;
r_text[3] = <object width="416" height="337">
<param name="movie" value="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdj3p_BE9jr-y7J6Y_VDnVn8=?autoplay=1"></param><param name="autoplay" value="1"></param>
<param name="loop" value="1"></param>
<embed src="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdj3p_BE9jr-y7J6Y_VDnVn8=?autoplay=1" type="application/x-shockwave-flash" width="416" height="337"></embed></object>;
r_text[4] = <object width="416" height="337">
<param name="movie" value="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdun5OfD4YMM4BjtKLUwmYBY=?autoplay=1"></param><param name="autoplay" value="1"></param>
<param name="loop" value="1"></param>
<embed src="
http://www.youtube.com/cp/vjVQa1PpcFMfRxIZcV2sdun5OfD4YMM4BjtKLUwmYBY=?autoplay=1" type="application/x-shockwave-flash" width="416" height="337"></embed></object>;
var i = Math.floor(5*Math.random())
window.onload=function(){ document.getElementById("ditdivid").innerHTML=r_text[i];
}
//-->
</script></div>
</div>