Widget Twitter con jQuery y @AnyWhere

0
18

Like it? Tweet it! es un plugin para jQuery el cual genera un widget que permite a los usuarios de tu sitio web tweetear sobre la pagina mediante un widget desplegable que utiliza el nuevo servicio de Twitter: @AnyWhere para realizarlo.

Su implementacion es super sencilla, solo tenemos que incluir el siguiente script dentro del head de nuestra pagina web.
Diseñar páginas Web.
[javascript]
<script type="text/javascript" src="http://tweet-it.s3.amazonaws.com/tweet-it.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".tweet-this a").tweetIt();
})
</script>
[/javascript]
Luego dentro del body crearemos un enlace el cual llamara al widget, esta debe tener como clase a tweet-this para reconocerlo.
si queremos personalizar una url corta al tweetear agregaremos este script dentro del head.
[html]
<link rev="canonical" type="text/html" href="http://bit.ly/whatever" />
[/html]
Este video es un ejemplo del funcionamiento de este plugin.

Página Oficial: Like it? Tweet it!

jfdghjhthit45