PDA

View Full Version : XHTML and embedded objects


masonbarge
07-11-2009, 02:55 PM
I've been trying to embed a Youtube video in an XHTML Transitional page, without success. I tried the "Satay" method and couldn't get it to work.

Does anyone have hints about this? I want the video and may have to revert to HTML 4.01.

The Youtube code is
<object width="340" height="285">
<param name="movie" value="http://www.youtube.com
/v/C6yIgN54R7k&amp;hl=en&amp;fs=1&amp;rel=0&
amp;color1=0x2b405b&amp;color2=0x6b8ab6&
amp;border=1"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/C6yIgN54R7k&
amp;hl=en&amp;fs=1&amp;rel=0&
amp;color1=0x2b405b&amp;color2=0x6b8ab6&
amp;border=1" type="application/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="true"
width="340" height="285"></embed></object>

The primary problem seems to be that <embed> is not defined. Is there some relatively simple way to work around this, like the use of CDATA with javascript?