一個部落格頁面如果同時顯示太多影片,會造成開啟速度太慢,用點擊才開啟的方式,會讓部落格開啟的比較順暢。下面是HTML語法,只要把youtube的網址換掉即可。
改紅色的部份就可以了~
1.改成想要的名稱
2.改成Unique的id
3.改成想要描述的字
4.改成Youtube上的video id
<span style="font-size: 24px;"><b>1.Closing Time by Tom Waits ~ full album HD</b></span><br />
<input onclick="2.BadRomance.style.display=(2.BadRomance.style.display=='none'?'':'none')" type="radio" /> <span style="color: black; font-size: medium;"><strong><span style="color: #999999;">3.按這裡欣賞</span></strong></span><br />
<br />
<div id="2.BadRomance" style="display: none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="344" width="425"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/4.lndL46jiEFQ&color1=0xcc2550&color2=0xe87a9f&hl=zh_TW&feature=player_embedded&fs=1" />
<embed width="425" height="344" type="application/x-shockwave-flash" src="http://www.youtube.com/v/4.lndL46jiEFQ&color1=0xcc2550&color2=0xe87a9f&hl=zh_TW&feature=player_embedded&fs=1" allowfullscreen="true" allowscriptaccess="always" />
</object>
</div>
沒有留言:
張貼留言