Sólo tienes que seguir tres pasos:
1. Pon el JavaScript después de la etiqueta HTML <body>
2. Edita:
bhVideoId = 'Your Video Id';
Aquí os dejo el script (versión HTML normal y preparado para Blogger):
[social]
Versión HTML:
<script type="text/javascript">
var bhVideoId = 'Your Video Id';
</script>
<script type="text/javascript" src="https://www.youtube.com/iframe_api"></script>
<script type="text/javascript">
var bhPlayer;
function onYouTubeIframeAPIReady() {
bhPlayer = new YT.Player('bh-video-container', {
events: {
'onReady': onPlayerReady
},
height: '356',
videoId: bhVideoId,
width: '425'
});
}
function onPlayerReady(Event) {
Event.target.playVideo();
Event.target.mute();
}
</script>
<style type="text/css">
#bh-video-container { display: none; }
</style>
<div id="bh-video-container"></div>
Versión para Blogger:
<script type="text/javascript">//<![CDATA[
var bhVideoId = 'Your Video Id';
//]]></script>
<script type="text/javascript" src="https://www.youtube.com/iframe_api"></script>
<script type="text/javascript">//<![CDATA[
var bhPlayer;
function onYouTubeIframeAPIReady() {
bhPlayer = new YT.Player('bh-video-container', {
events: {
'onReady': onPlayerReady
},
height: '356',
videoId: bhVideoId,
width: '425'
});
}
function onPlayerReady(Event) {
Event.target.playVideo();
Event.target.mute();
}
//]]></script>
<style type="text/css">
#bh-video-container { display: none; }
</style>
<div id="bh-video-container"></div>
Visto en CPA Elites
[/social]