1) Buka youtube lagu yang korang nak dan click share > embed > tick used old embed code
2) Copy semua kod seperti di atas dan paste pada ruangan HTML/ Javascript
3) Cuba tengok kod dia (yana ambil contoh lagu Rossa)
<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/NzKbG0Ny9CE?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NzKbG0Ny9CE?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
4) Tukar kod yang diwarnakan
width = "200"height = "25"version=3 tukar kepada autoplay=1
5) Jadi kod korang akan jadi macam ni
<object width="200" height="25"><param name="movie" value="http://www.youtube.com/v/NzKbG0Ny9CE?autoplay=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NzKbG0Ny9CE?autoplay=1&hl=en_US&rel=0" type="application/x-shockwave-flash" width="200" height="25" allowscriptaccess="always" allowfullscreen="true"></embed></object>
6) Siap boleh save
0 suka ayam goreng:
Post a Comment