Casomi enfermedad
Patologico
...
   

Post anterior: Mas fotos y videos del bar provoca , sin censura, ... »tampones fantasma »WebSnapr »Programa para calcular RFC y CURP , Mexico »Mas fotos de el bar provoca y yahoo respuestas »El bar provoca , fotos y videos en cuernavaca »Chedraui era Carrefour ... »Un alma imaginaria mas llevada al buen camino »Blog to be wild: Feria Internacional del Libro, Mo... »Señor Miyagi » 




Google compartidos

Lecturas Recomendadas. Fuente:Sindicalizador compartido google


jueves, noviembre 02, 2006

- Blogger hack: Lista de links con foto al lado


English
Blogger hack: Links list with thumbnail


Ejemplo de como se ve la lista de links con foto al lado: Ejemplo
Este hack usa delicious y Websnapr para presentar las imágenes.
English
See example: Example
This hack use delicious and Websnapr to show thumbnails.


Nivel de complejidad
◊◊◊◊

PASO 1
Crear un usuario en del.icio.us. Dar de alta los links con la etiqueta "blogroll".
English
Create a del.icio.us account. Add links with tag "blogroll"


PASO 2
Copiar/Pegar el siguiente código en donde se quiere la lista de links con fotografía.
English
Copy/Paste next code where you want display links with snapshot


<div id="xcontainer">
<h2>my bookmarks</h2>
</div>

<script type="text/javascript"
src="http://del.icio.us/feeds/json/XXXXXXXXXXXXX/blogroll?count=100"></script>

<script type="text/javascript">
function xshowImage(img){ return (function(){ img.style.display='inline'; }) }

var ul = document.createElement('ul')
for (var i=0, post; post = Delicious.posts[i]; i++) {
var li = document.createElement('li');
var salto = document.createElement("div");
salto.id="idimg"+i;
salto.className = "donswitchcontent";
li.style.textAlign = 'left';
li.style.marginBottom = '5px';

var a = document.createElement('a');
a.style.marginLeft = '20px';
li.style.marginBottom = '6px';
a.style.marginLeft = '20px';
var img = document.createElement('img');
img.style.position = 'relative';
img.style.display = 'inline'; //'none';
img.height = img.width = 16;
img.alt = post.d;
img.title = post.d;
if (typeof(post.u) != "undefined") {a.style.marginLeft = '5px';img.style.position = 'relative';img.src = "http://images.websnapr.com/?url="+post.u+"&size=t"; img.height = 87; img.width = 128;}
else img.src = post.u.split('/').splice(0,3).join('/')+'/favicon.ico';
img.onload = xshowImage(img);
a.setAttribute('href', post.u);
a.appendChild(salto);
salto.appendChild(img);
li.appendChild(document.createTextNode(" "+post.d));
li.appendChild(a);
ul.appendChild(li);
}
document.getElementById('xcontainer').appendChild(ul)
</script>


DEBES sustituir las XXXXXXXXXXXXX con tu usuario de deli.icio.us.
English
You MUST replace XXXXXXXXXXXXX with your deli.icio.us user.


PASO 3
Es todo. Republicar.
English
That's all. Republish


 

Post anterior: Mas fotos y videos del bar provoca , sin censura, ... »tampones fantasma »WebSnapr »Programa para calcular RFC y CURP , Mexico »Mas fotos de el bar provoca y yahoo respuestas »El bar provoca , fotos y videos en cuernavaca »Chedraui era Carrefour ... »Un alma imaginaria mas llevada al buen camino »Blog to be wild: Feria Internacional del Libro, Mo... »Señor Miyagi » 


CSS Válido | WAI-AA | Licencia CC | Contacto


↑Arriba

imgizqimgder
 Datos curiosos Cooooooge 

Currículum blogae

Expandibles

+ Porno links

Categorías

Combina (p.ej Chilly/Const)


Últimos Posts

online counter

"Todos hemos oído decir que si un millón de monos aporrearan un millón de máquinas de escribir con el tiempo llegarían a reproducir las obras completas de Shakespeare. Ahora, gracias a los blogs, sabemos que eso no es cierto."

no meme
no meme