Mostrando entradas con la etiqueta efectos. Mostrar todas las entradas
Mostrando entradas con la etiqueta efectos. Mostrar todas las entradas

sábado, 30 de marzo de 2013

Zoom en imagenes usando jQuery para Blogger

Anterior mente habia publicado como agregar un efecto zoom usando css para una galeria, ante las desventajas de css, les enseñare como agregarle efecto Zoom a las imagenes usando Jquery  de esta manera funcionara en otros navegadores como IE solamente haciendo clic en la iamgen.  Si usas Scriptaculos o otro script no funcionara. por lo que te recomiento ver el siguiente post.

Puedes ver este blogs de pruevas

La verdad esto es muy simple:
solo tienes que agregar antes de </head> el siguiente codigo:


<script type='text/javascript'>
//<![CDATA[
/* jQuery Image Magnify script v1.1
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code

* Nov 16th, 09 (v1.1): Adds ability to dynamically apply/reapply magnify effect to an image, plus magnify to a specific width in pixels.
* Feb 8th, 11 (v1.11): Fixed bug that caused script to not work in newever versions of jQuery (ie: v1.4.4)
*/

jQuery.noConflict()

jQuery.imageMagnify={
 dsettings: {
  magnifyby: 3, //default increase factor of enlarged image
  duration: 500, //default duration of animation, in millisec
  imgopacity: 0.2 //opacify of original image when enlarged image overlays it
  },
 cursorcss: 'url(magnify.cur), -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
 zIndexcounter: 100,

 refreshoffsets:function($window, $target, warpshell){
  var $offsets=$target.offset()
  var winattrs={x:$window.scrollLeft(), y:$window.scrollTop(), w:$window.width(), h:$window.height()}
  warpshell.attrs.x=$offsets.left //update x position of original image relative to page
  warpshell.attrs.y=$offsets.top
  warpshell.newattrs.x=winattrs.x+winattrs.w/2-warpshell.newattrs.w/2
  warpshell.newattrs.y=winattrs.y+winattrs.h/2-warpshell.newattrs.h/2
  if (warpshell.newattrs.x<winattrs.x+5){ //no space to the left?
   warpshell.newattrs.x=winattrs.x+5
  }
  else if (warpshell.newattrs.x+warpshell.newattrs.w > winattrs.x+winattrs.w){//no space to the right?
   warpshell.newattrs.x=winattrs.x+5
  }
  if (warpshell.newattrs.y<winattrs.y+5){ //no space at the top?
   warpshell.newattrs.y=winattrs.y+5
  }
 },

 magnify:function($, $target, options){
  var setting={} //create blank object to store combined settings
  var setting=jQuery.extend(setting, this.dsettings, options)
  var attrs=(options.thumbdimensions)? {w:options.thumbdimensions[0], h:options.thumbdimensions[1]} : {w:$target.outerWidth(), h:$target.outerHeight()}
  var newattrs={}
  newattrs.w=(setting.magnifyto)? setting.magnifyto : Math.round(attrs.w*setting.magnifyby)
  newattrs.h=(setting.magnifyto)? Math.round(attrs.h*newattrs.w/attrs.w) : Math.round(attrs.h*setting.magnifyby)
  $target.css('cursor', jQuery.imageMagnify.cursorcss)
  if ($target.data('imgshell')){
   $target.data('imgshell').$clone.remove()
   $target.css({opacity:1}).unbind('click.magnify')
  }
  var $clone=$target.clone().css({position:'absolute', left:0, top:0, visibility:'hidden', border:'1px solid gray', cursor:'pointer'}).appendTo(document.body)
  $clone.data('$relatedtarget', $target) //save $target image this enlarged image is associated with
  $target.data('imgshell', {$clone:$clone, attrs:attrs, newattrs:newattrs})
  $target.bind('click.magnify', function(e){ //action when original image is clicked on
   var $this=$(this).css({opacity:setting.imgopacity})
   var imageinfo=$this.data('imgshell')
   jQuery.imageMagnify.refreshoffsets($(window), $this, imageinfo) //refresh offset positions of original and warped images
   var $clone=imageinfo.$clone
   $clone.stop().css({zIndex:++jQuery.imageMagnify.zIndexcounter, left:imageinfo.attrs.x, top:imageinfo.attrs.y, width:imageinfo.attrs.w, height:imageinfo.attrs.h, opacity:0, visibility:'visible', display:'block'})
   .animate({opacity:1, left:imageinfo.newattrs.x, top:imageinfo.newattrs.y, width:imageinfo.newattrs.w, height:imageinfo.newattrs.h}, setting.duration,
   function(){ //callback function after warping is complete
    //none added 
   }) //end animate
  }) //end click
  $clone.click(function(e){ //action when magnified image is clicked on
   var $this=$(this)
   var imageinfo=$this.data('$relatedtarget').data('imgshell')
   jQuery.imageMagnify.refreshoffsets($(window), $this.data('$relatedtarget'), imageinfo) //refresh offset positions of original and warped images
   $this.stop().animate({opacity:0, left:imageinfo.attrs.x, top:imageinfo.attrs.y, width:imageinfo.attrs.w, height:imageinfo.attrs.h},  setting.duration,
   function(){
    $this.hide()
    $this.data('$relatedtarget').css({opacity:1}) //reveal original image
   }) //end animate
  }) //end click
 }
};

jQuery.fn.imageMagnify=function(options){
 var $=jQuery
 return this.each(function(){ //return jQuery obj
  var $imgref=$(this)
  if (this.tagName!="IMG")
   return true //skip to next matched element
  if (parseInt($imgref.css('width'))>0 && parseInt($imgref.css('height'))>0 || options.thumbdimensions){ //if image has explicit width/height attrs defined
   jQuery.imageMagnify.magnify($, $imgref, options)
  }
  else if (this.complete){ //account for IE not firing image.onload
   jQuery.imageMagnify.magnify($, $imgref, options)
  }
  else{
   $(this).bind('load', function(){
    jQuery.imageMagnify.magnify($, $imgref, options)
   })
  }
 })
};

jQuery.fn.applyMagnifier=function(options){ //dynamic version of imageMagnify() to apply magnify effect to an image dynamically
 var $=jQuery
 return this.each(function(){ //return jQuery obj
  var $imgref=$(this)
  if (this.tagName!="IMG")
   return true //skip to next matched element
 
 })

};


//** The following applies the magnify effect to images with class="magnify" and optional "data-magnifyby" and "data-magnifyduration" attrs
//** It also looks for links with attr rel="magnify[targetimageid]" and makes them togglers for that image

jQuery(document).ready(function($){
 var $targets=$('.magnify')
 $targets.each(function(i){
  var $target=$(this)
  var options={}
  if ($target.attr('data-magnifyto'))
   options.magnifyto=parseFloat($target.attr('data-magnifyto'))
  if ($target.attr('data-magnifyby'))
   options.magnifyby=parseFloat($target.attr('data-magnifyby'))
  if ($target.attr('data-magnifyduration'))
   options.duration=parseInt($target.attr('data-magnifyduration'))
  $target.imageMagnify(options)
 })
 var $triggers=$('a[rel^="magnify["]')
 $triggers.each(function(i){
  var $trigger=$(this)
  var targetid=$trigger.attr('rel').match(/\[.+\]/)[0].replace(/[\[\]']/g, '') //parse 'id' from rel='magnify[id]'
  $trigger.data('magnifyimageid', targetid)
  $trigger.click(function(e){
   $('#'+$(this).data('magnifyimageid')).trigger('click.magnify')
   e.preventDefault()
  })
 })
})


/***********************************************
* jQuery Image Magnify- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

//]]>
</script>


 Pro ultimo para agregar las imagenes, ya sea en un gadget o entrada usa:

<img src="URL DE LA IMAGEN" class="magnify" style="width:150px; height:150px" />

En color Azul esta lo que puedes editar, osea el tamaño de la imagen en pequeño.  Asi de facil podemos agregarle efecto Zoom a nuestras imagenes.

Galeria de imagenes en miniatura con efecto zoom usando css


Usando CSS y con un poco de creatividad podemos hacer una pequeña Galeria de Imagenes en miniatura, que con solo pasar en cursor sobre la imagen aumenta su tamaño (efecto zoom) sobreponiedoce sebre las demas. esto lo hacemos usardo en comado hover, ademas podemos agregarle estilos de bordes con diferentes propiedades (yo le he colocado una por defecto).
puedes ver un  pequeño en jemplo en este:


Por lo regular las Galerias se agregar ya sea en una paguina o en una entrada por lo que podemos agregar es siguiente codigo es la seccion de HTML de las estradas o paguinas.


<style>
/* Galeria de imagenes*/
.galeri{
background:#0000;
margin-top:5px;
margin-left:5px;
}
.galeri img {
-o-border-radius: 5px;/* radio de borde*/
-ms-border-radius: 55px;/* radio de borde*/
-webkit-border-radius: 5px;/* radio de borde*/
-moz-border-radius: 5px;/* radio de borde*/
border-radius: 5px;
-webkit-box-shadow: 0px 0px 4px #696969;
-moz-box-shadow: 0px 0px 4px #696969;
box-shadow: 0px 0px 4px #696969;
padding: 5px;
position:static;
}
.galeri img:hover {
-o-border-radius: 5px;/* radio de borde*/
-ms-border-radius: 5px;/* radio de borde*/
-webkit-border-radius: 5px;/* radio de borde*/
-moz-border-radius: 5px;/* radio de borde*/
border-radius: 5px;
-webkit-box-shadow: 0px 0px 4px #696969;
-moz-box-shadow: 0px 0px 4px #696969;
box-shadow: 0px 0px 4px #696969;
-webkit-transition:all .8s ease;
-o-transition:all .8s ease;
-moz-transition:all .8s ease;
-ms-transition:all .8s ease;
transition:all .8s ease;
width: 50%;/*tamaño de imagen al pasar en cursor*/
height:50%;/*tamaño de imagen al pasar en cursor*/
float:center;
position:absolute;
padding: 5px;
margin-top:-15%;/*posicion de arriba a abajo al pasar el cursor*/
margin-left:-25%;/*posicion de izquierda a derecha al pasar el cursor */
}

</style>

<div class="galeri">
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>

</div>
<div class="galeri">
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="h#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>

</div>
<div class="galeri">
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>
</div>
Si quieres agregar otra imagen en cualquier columna simplemente agregar:

<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZSh9vKfJ-glb_iAC3oxMTDDxeCSJN05xkNbcK-iJi6W22J9IdhCa5XKZTtZ_4cqAOMnpuXTyhs77klMdARB1zu4Dmg8jZ3tfiqn0ipWi_2zI9iktxMDxTzOPVy6Ptph_zyhh2htKv_0/s1600/Paisajes-de-Mar.jpg" height="125px" width="125px" /></a>

En cualquier parte dentro de: ( no tienes que agregar lo de negro de nuevo, simplemente agrega dentro de el codigo de la imagen nueva)
<div class="galeri"> Aqui codigo de arriba con el url de la nueva imagen </div>


 y si quieres agregar otra fila, simplemente pega todo el codigo:( incluyendo lo de azul)

<div class="galeri"> Aqui codigo de todas la imagenes de la nueva fila </div>

Como lo vez es Facil agregar esta Galeria, una de las desventajas es que no tendra en efecto Zoom en navegadores modernos y nucho menos en IE.


sábado, 23 de marzo de 2013

Efectos en todas las imagenes del blogs con CSS3


Para quienes se preguntaban como hacer que las imagenes de todas las entradas tengas bordes redondos,
bueno vamos a aprender a agregarles en efecto de bordes redondeados a las imagenes de nuestro blogs,

Para darle este toque somplemente usaremos CSS3, la cual nos permite hacer esto mediante la declaracion de border-radius
con agregaremos los bordes.

Esto sera sivible siempre y cuando quien vea la página use un navegador moderno

Los estilos los agregaremos a la declaracion

.post-body img {-----------
---------Aqui los estilos-------
----------------------------
}

.post-body img:hover {-----
------Aqui los estilos al pasar en cursor-------
-------------------------------
}

Nota: es por si quieres hacer tus propios estilos o simplemente modifica cualquiera de los ejemplos


Veamos los siguientes ajemplos:

Para agregarlo a sus imagenes simplemente copia copia el código, luego entra a la Edición HTML de la plantilla y pega dicho código antes de ]]></b:skin>



.post-body img {
border-radius: 10px 10px 10px 10px; /* Borde redondeado */
box-shadow: 0px 0px 15px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
background:#FFF; /* Color de fondo que se ve entre el espacio */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}

o tambien podemos aplicar algunos efectos al pasar el cursor usando la declaracion "hover"
como por ejemplo




.post-body img {
border-radius:  10px 10px 10px 10px; /* Borde redondeado */
box-shadow: 0px 0px 10px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
background:#FFF; /* Color de fondo que se ve entre el espacio */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.post-body img : hover {
border-radius:100px 300px 100px 300px; /* Con esto quitamos el borde redondeado */
box-shadow: 0px 0px 15px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
cursor:pointer;

}

  

.post-body img {
border-radius:  100px 10px 10px 100px; /* Borde redondeado */
box-shadow: 0px 0px 10px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
background:#FFF; /* Color de fondo que se ve entre el espacio */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.post-body img: hover {
border-radius:10px 100px 100px 0px; /* Con esto quitamos el borde redondeado */
box-shadow: 0px 0px 15px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
cursor:pointer;

}

  
.post-body img {
border-radius:  10px 10px 10px 10px; /* Borde redondeado */
box-shadow: 0px 0px 10px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
background:#FFF; /* Color de fondo que se ve entre el espacio */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.post-body img:hover {
border-radius:300px 300px 300px 300px; /* Con esto quitamos el borde redondeado */
box-shadow: 0px 0px 15px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
cursor:pointer;

}

  

.post-body img {
border-radius:  300px 300px 300px 300px; /* Borde redondeado */
box-shadow: 0px 0px 10px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
background:#FFF; /* Color de fondo que se ve entre el espacio */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
.post-body img:hover {
border-radius:10px 10px 10px 10px; /* Con esto quitamos el borde redondeado */
box-shadow: 0px 0px 15px #000; /* Sombra */
padding:15px; /* Espacio entre la imagen y el borde */
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
cursor:pointer;

}


Es cuestion de jugar con en radio de los bordes para tener un estilo perzonalizado por ejemplo

border-radius: 10px 50px 15px 80px;

Cada valor corresponde a una esquina de la image, en este ejemplo seria:

10px es el borde de la esquina superior izquierda.
50px el borde de la esquina superior derecha.
15px el borde de la esquina inferior derecha.
80px el borde de la esquina inferior izquierda.


En conclusion podemos conseguir que las imágenes de las entradas se vean más atractivas, que interactúen con el lector, y tan sólo ha sido añadiendo un poco de CSS.

Expandir imagenes con efecto deslizante (zoom)



Les traigo un tutorial que espero le sirva de mucho a aquellos que tiene un blogs de imagenes, o que simplemente quieren agregarle un toque distinto a su blogs agregando un efecto distinto a sus imagenes, se trata de un script que nos permite expandir imagenes a tu tamaño normal con un efecto de Zoom deslizante, que le da un toque de elegansia.


Para lograr este efecto simplemente ingresa a la Edición HTML y agrega antes de </head> el script:


<script type='text/javascript'>
//<![CDATA[

/* Expando Image Script 2008 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/
username: jscheuer1 - This Notice Must Remain for Legal Use
*/

if (document.images){
(function(){
var cos, a = /Apple/.test(navigator.vendor), times = a? 20 : 40, speed = a? 40 : 20;
var expConIm = function(im){
im = im || window.event;
if (!expConIm.r.test (im.className))
im = im.target || im.srcElement || null;
if (!im || !expConIm.r.test (im.className))
return;
var e = expConIm,
widthHeight = function(dim){
return dim[0] * cos + dim[1] + 'px';
},
resize = function(){
cos = (1 - Math.cos((e.ims[i].jump / times) * Math.PI)) / 2;
im.style.width = widthHeight (e.ims[i].w);
im.style.height = widthHeight (e.ims[i].h);
if (e.ims[i].d && times > e.ims[i].jump){
++e.ims[i].jump;
e.ims[i].timer = setTimeout(resize, speed);
} else if (!e.ims[i].d && e.ims[i].jump > 0){
--e.ims[i].jump;
e.ims[i].timer = setTimeout(resize, speed);
}
}, d = document.images, i = d.length - 1;
for (i; i > -1; --i)
if(d[i] == im) break;
i = i + im.src;
if (!e.ims[i]){
im.title = '';
e.ims[i] = {im : new Image(), jump : 0};
e.ims[i].im.onload = function(){
e.ims[i].w = [e.ims[i].im.width - im.width, im.width];
e.ims[i].h = [e.ims[i].im.height - im.height, im.height];
e (im);
};
e.ims[i].im.src = im.src;
return;
}
if (e.ims[i].timer) clearTimeout(e.ims[i].timer);
e.ims[i].d = !e.ims[i].d;
resize ();
};
expConIm.ims = {};
expConIm.r = new RegExp('\\bexpando\\b');
if (document.addEventListener){
document.addEventListener('mouseover', expConIm, false);
document.addEventListener('mouseout', expConIm, false);
}
else if (document.attachEvent){
document.attachEvent('onmouseover', expConIm);
document.attachEvent('onmouseout', expConIm);
}
})();
}
//]]>
</script>

<style>
img.expando{
margin:4px;
vertical-align: top;
}
img.expando {
float:right;
margin-left:20px;
padding:10px;
}
</style>
 Y liego despues ya sea un una entrada o gadget agregas los siguiente

La imagen que pongas deberá ser la que tiene el tamaño normal, y en donde se indica en color rojo deberás poner el tamaño que tendrá la miniatura.


<img border="0" src="URL de la imagen" class="expando" width="100" />


Descripcion en imagenes con efecto deslizante usando css

Una forma de agregarle mas estilo a nuestras imágenes y hacer que nuestro blogs sea mas profesional, es poniendo una pequeña descripc...