Código PHP:
function getVideo($link,$type){
$yw = 220;
$yh = 190;
switch ($type){
case 1:
$output= '<object width="'.$yw.'" height="'.$yh.'">
<param name="movie" value="'.$link.'"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always">
</param><embed src="'.$link.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$yw.'" height="'.$yh.'"></embed></object>';
break;
}
return $output;
}
Código PHP:
case 1:
$output= '<object width="'.$yw.'" height="'.$yh.'">
<param name="movie" value="'.$link.'"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always">
</param><embed src="'.$link.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$yw.'" height="'.$yh.'"></embed></object>';
return $output;
break;
case 2:
$output = "Etc";
return $output;
break;
Saludos y gracias.