Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Can i get some fresh eyes to look over this:Code: Select all
function displayYoutube($url, $width=250, $height=225)
{
$videoID = str_replace('http://www.youtube.com/watch?v=','',$url);
return '<object width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.youtube.com/v='.$videoID.'"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v='.$videoID.' "type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed>
</object>';
}Code: Select all
<object width="250" height="225">
<param name="movie" value="http://www.youtube.com/v=http://youtube.com/watch?v=8OZREnV6F0o"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v=http://youtube.com/watch?v=8OZREnV6F0o"type="application/x-shockwave-flash" wmode="transparent" width="250" height="225"></embed>
</object>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]