HTML gevorderde |
|
$url = 'http://www.youtube.com/watch?v=_bX_MsrckiQ&feature=related';
$v = explode('?v=', $url);
$v = explode('&', $v[1]);
$v = $v[0];
$embed = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' . $v . '&hl=nl&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' . $v . '&hl=nl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>';
echo $embed;
$url = 'http://www.youtube.com/watch?v=_bX_MsrckiQ&feature=related'; $v = $v[0]; $embed = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' . $v . '&hl=nl&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' . $v . '&hl=nl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>';
|