2013-02-28 67 views
0

嗨每一个我想尝试这种效果jQuery的效果举动imagen画质

我在一个imagen画质单击(PFD的图像),当我做到这一点,用户看到这样一个imagen画质(或其它)移动速度非常快的项目菜单,并向用户显示一些东西是保存(一个pfd是保存)

当我碰到这个菜单项我会看到所有的pdf保存。

存在一个插件n jquery或类似的东西。

感谢

回答

0

最后我找到了答案,我把代码在这里的人。 这是我的链接

<img id="libro" class="pull-right" onclick="<?php $_SESSION['libro'][]=1 ?>" src="<?php echo JURI::root()?>/images/about/booklet.png"/> 



var animatepos; 
    $("#libro").click(function(){ 
     var current= $("#libro").clone(); 
     current.attr('id', 'newLibro'); 
     current.toggleClass('pull-right librovolatil'); 
     current.insertBefore("#libro"); 
     //$('body').append(current); 
     current.offset($('#libro').offset()); 
     var posInicial= current.offset(); 
     var posDestino= $(".item-122").offset(); 

     var arriba= posDestino.top - posInicial.top; 
     var der= posDestino.left - posInicial.left; 
     animatepos = {"marginTop": arriba, 
      "marginLeft": der 
     }; 
     current.animate(animatepos 
      , "slow", "", function(){ 
       current.remove(); 
      });