Porque el siguiente codigo si anda en Firefox y no en IE. Si pongo una direccion fija <param name="movie" value="http://www.youtube.com/v/dpOTNKHvISM" /> el video se reproduce pero si la quiero insertar con js el IE no me la toma, me deja el valor vacio. Alguna explicacion/solucion??? Grx!
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/lib/jquery.js"></script>
<script type="text/javascript">
$(function() {
$("#obj").attr("data",getDire('http://www.youtube.com/watch?v=Qg2VKhOZ48Q&feature=PlayList&p=315864B2B5DF452B&index=0&playnext=1'));
$("#par").attr("value",getDire('http://www.youtube.com/watch?v=Qg2VKhOZ48Q&feature=PlayList&p=315864B2B5DF452B&index=0&playnext=1'));
});
function getDire( url, size ){
if(url === null){ return ""; }
var vid;
var results;
results = url.match("[\\?&]v=([^&#]*)");
vid = ( results === null ) ? url : results[1];
return "http://www.youtube.com/v/"+vid;
}
</script>
</head>
<body>
<div>
<object id="obj" class="" width="425" height="350" type="application/x-shockwave-flash" data="">
<param id="par" name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
</div>
</body>
</html>