Hallo zusammen.
Ich habe da ein kleines Problem. Ich möchte gerne ein Youtube Video auf eine HTML Seite einbinden und anzeigen lassen. Ich hab schon im Netz geschaut, aber alles bringt nichts. Es wird einfach nichts angezeigt.
So sieht mein Code bisher aus.Inhalt anzeigen
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Unbenanntes Dokument</title><style type="text/css">#full{ width: 995px; border: none; margin:0; padding:0;} body { background-image: url(bg.jpg); background-position: 50% 0%; background-repeat:repeat-x;}#video { position: relative; left: 100px; width: 400px;}</style></head><body><div id="video"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Hm2BdCbZ… name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Hm2BdCbZkK… type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></div></body></html>
Inhalt anzeigen
So hab ich es auch schon versucht, jedoch ohne Erfolg.Inhalt anzeigen
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Unbenanntes Dokument</title><style type="text/css">#full{ width: 995px; border: none; margin:0; padding:0;} body { background-image: url(bg.jpg); background-position: 50% 0%; background-repeat:repeat-x;}#video { position: relative; left: 100px; width: 400px;}</style></head><body><div id="video"><iframe width="560" height="315" src="//www.youtube.com/embed/2t47tpmJ5oA?rel=0" frameborder="0" allowfullscreen></iframe></div></body></html>
Inhalt anzeigen
Ich weiss nicht, wo ich den Fehler mache. ![]()
//edit
Fail