<iframe> 


Basic

<iframe id="ytplayer" width="460" height="289" src="http://www.youtube.com/embed/fxs970FMYIo" frameborder="0" allowfullscreen></iframe>

 

Show HD, with no title
<iframe width="460" title="YouTube video player" src="http://www.youtube.com/embed/fxs970FMYIo?HD=1;rel=0;showinfo=0" height="289" frameborder="0">
</iframe>


Turn off the YouTube control bar
<iframe width="460" title="YouTube video player" src="http://www.youtube.com/embed/fxs970FMYIo?HD=1;rel=0;showinfo=0;controls=0" height="289" frameborder="0">
</iframe>

 

 

 <object> 

 

No title
<object width="1280" height="750">
<param name="movie" value="http://www.youtube.com/embed/uFBg5Vwheus?fs=1&hl=en_US&rel=0;showinfo=0"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/embed/uFBg5Vwheus?fs=1&hl=en_US&rel=0;showinfo=0" type="application/x-shockwave-flash" width="1280" height="750" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>

 
YouTube Embedded Players and Player Parameters:
https://developers.google.com/youtube/player_parameters?hl=zh-TW

參考資料:
http://www.thesocialpath.com/2011/02/three-ways-to-embed-a-youtube-clip-on-your-site.html
http://www.moonlit.me/youtube%E6%A8%99%E9%A1%8C%E5%88%AA%E9%99%A4%E7%A7%BB%E9%99%A4-1592.html

, , , ,

cabuchi 發表在 痞客邦 PIXNET 留言(0) 人氣()