En este articulo estare mostarandole un sencillo truco para transmitir tu contenido de pagina de video YouTube.Este es un magnifico widget para tu blog. Este mostrara tu actividad o fuente de contenido de YouTube en tu blogger.Siga estos pasos para añadirlo a tu blog.
1. Entra en tu blogger Diseño > Elemento de Pagina.
2. Da Click Añadir un Gadget y selecciona 'HTML/Javascript
3.Ahora pegue el siguiente codigo.
<script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'></script>
<style type="text/css">
div.ytc {clear:both;padding:5px;font-size:11px;}
div.ytc.odd {background-color: #eee;}
div.ytc_thumb {position:relative;float:right;margin-left:4px;line-height:1;}
div.ytc_thumb img {width:69px;height:52px;border:1px solid #888;}
div.ytc_title {font-weight:bold;}
</style>
<script type='text/javascript'>
var ytfUserName = "Nombre de Usuario de YouTube";
var ytfMaxResults = 8;
var ytfAllow = "";
var ytfDisallow = "";
var ytfEmpty = "No entries";
$(document).ready(function() {
$.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=58c841d14337ba4fbf693abd9701dc49&_render=json&max-results="+ytfMaxResults+"&allow="+ytfAllow+"&disallow="+ytfDisallow+"&user="+ytfUserName+"&_callback=?", function(response) {
var htm = "";
for(var i=0;i<response.count;i++) {
var item = response.value.items[i];
htm += '<div class="ytc';
if(i%2 == 1) htm += ' odd';
htm += '"><div class="ytc_thumb"><a target="_blank" href="' + item.link + '"><img title="' + item.title + '" src="' + item.thumb + '"/></a></div>';
htm += '<div class="ytc_title"><a target="_blank" href="' + item.link + '">' + item.title + '</a></div>';
htm += '<div class="ytc_description">' + item.description + '</div><div style="clear:both;"></div></div>';
}
if(htm == "") htm = ytfEmpty;
$("#ytfeed").html(htm);
});
});
</script>
<div id="ytfeed">Descargando...</div>
Despues de pegar el codigo de arriba* Reemplace Nombre de Usuario de YouTube con el nombre de usuario de YouTube
4. Para finalizar guarde el HTML/Javascript'.
Todo esta finalizado...
0 comentarios:
Publicar un comentario