You are in: home » webdesign » article

Embedded Flash objects, from HTML to valid XHTML Strict

Page 3 of 3

Tags: XHTML Flash

Metacafe video

Original HTML code:

<embed src="http://www.metacafe.com/fplayer/1015727/all_new_reno_911____terry_and_se.swf" width="400" height="345" wmode="transparent"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

<br/><font size="1"><a href="http://www.metacafe.com/watch/1015727/all_new_reno_911_terry_and_se/">All New RENO 911! - Terry And Se... - video powered by Metacafe</a></font>

XHTML Strict code:

<object type="application/x-shockwave-flash" height="345" width="400" data="http://www.metacafe.com/fplayer/1015727/all_new_reno_911____terry_and_se.swf" >

<param name="movie" value="http://www.metacafe.com/fplayer/1015727/all_new_reno_911____terry_and_se.swf" />
<param name="wmode" value="transparent" />
</object>

<br/><span style="font-size: x-small;"><a href="http://www.metacafe.com/watch/1015727/all_new_reno_911_terry_and_se/">All New RENO 911! - Terry And Se... - video powered by Metacafe</a></span>

In order to add the video autoplay option, you need to add the following parameter:

<param name="flashVars" value="altServerURL=http%3A%2F%2Fwww.metacafe.com&amp;playerVars=showStats=no|autoPlay=yes|videoTitle=" />

Megavideo video

Original HTML code:

<object width="432" height="351">

<param name="movie" value="http://www.megavideo.com/v/M6ERQIRYb8e3e58b3ddf10c1f6a3e92d31cc8bfd.34300433.0"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.megavideo.com/v/M6ERQIRYb8e3e58b3ddf10c1f6a3e92d31cc8bfd.34300433.0" type="application/x-shockwave-flash" wmode="transparent" width="432" height="351">

</embed>
</object>

XHTML Strict code:

<object type="application/x-shockwave-flash" data="http://www.megavideo.com/v/M6ERQIRYb8e3e58b3ddf10c1f6a3e92d31cc8bfd.34300433.0" width="432" height="351">

<param name="movie" value="http://www.megavideo.com/v/M6ERQIRYb8e3e58b3ddf10c1f6a3e92d31cc8bfd.34300433.0"></param>
<param name="wmode" value="transparent"></param>
</object>

Hulu video

Original HTML code:

<object width="510" height="295">
<param name="movie" value="http://www.hulu.com/embed/-baQThXa9Ty5smvT_L3DjA"></param>

<param name="flashvars" value="st=0&et=5896"></param>
<embed src="http://www.hulu.com/embed/-baQThXa9Ty5smvT_L3DjA" type="application/x-shockwave-flash" flashvars="st=0&et=5896" width="510" height="295"></embed>

</object>

XHTML Strict code:

<object type="application/x-shockwave-flash" data="http://www.hulu.com/embed/-baQThXa9Ty5smvT_L3DjA" width="510" height="295">

<param name="movie" value="http://www.hulu.com/embed/-baQThXa9Ty5smvT_L3DjA"></param>
<param name="flashvars" value="st=0&amp;et=5896"></param>
</object>

In order to view Hulu videos you need an American IP address.

Pages:  «Prev 1 2 3

Show all the article's pages in one single long page. All in one page

referrers Check incoming links to this article, according to Yahoo!.

|

react Send your reaction to this article by email.

|

bookmark Save this article using an online web2.0 service, the bookmark can be priate or can be shared with the rest of the world.

|

print If Javascript is disabled you'll need to use your browser's control to print this pages.