Salut
Sub imaginea de la YouTube e un buton
Share , dupa ce apesi pe el, apare adresa URL pt. acel video, care are codul de acces.
De exemplu, apare asa, iar codul e:
MDo8dO6hnjo
si un buton
Embend
Acum ar fi doua variante:
1. Dai clic pe Embed, copii codul care apare (un <iframe>) si-l adaugi in codul tau HTML.
2. Mai profesional, folosesti elementul html <object> in care adaugi codul pt. acel video.
Exemplu:
Cod: SelectaĊ£i tot
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/MDo8dO6hnjo?version=3&autohide=1&showinfo=0"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/MDo8dO6hnjo?version=3&autohide=1&showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" width="425" height="355"></embed>
</object>
- codul (aici " MDo8dO6hnjo ") se adauga in cele 2 <param>, la
value , intre
v/ ... ?version .
- La "width" si "height" se seteaza dimensiunile.