Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2012, 19:55
Avatar de YYs86
YYs86
 
Fecha de Ingreso: abril-2012
Ubicación: Salamanca
Mensajes: 136
Antigüedad: 12 años
Puntos: 14
Respuesta: mover imagen izquierda o derecha con jQuery

Prueba con algo así:

Código Javascript:
Ver original
  1. $(document).ready(function(){
  2.  
  3. $('.div-izq').mouseover(function(){
  4.  
  5. $('.div-izq').stop().animate({backgroundPosition: "0 0"}, 1000);
  6.  
  7. }).mouseout(function(){
  8.  
  9. $('.div-izq').stop();
  10.  
  11. });
  12.  
  13. });
  14.  
  15. $('.div-derch').mouseover(function(){
  16.  
  17. $('.div-derch').stop().animate({backgroundPosition: "-1000 0"}, 1000);
  18.  
  19. }).mouseout(function(){
  20.  
  21. $('.div-derch').stop();
  22.  
  23. });
  24.  
  25. });
__________________
Web developer:

http://xtremgaming.es
http://leaderleague.com