le code html du corps:Pourquoi cet effet de transfert simple jquery ne fonctionne pas?
<div style="background:yellow;width:500px;height:300px;">
<div id="div1" style="background:red; width:100px;height:100px; float:left;"></div>
<div id="div2" style="background:blue; width:50px;height:50px; float:right;"></div>
</div>
alors le code js:
$(function() {
$("#div1").click(function() {
$(this).effect("transfer", { to: $("#div2") }, 1000);
//$(this).effect("shake", { times: 2 }, 200);
});
});
bien sûr j'importer le
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
vous pouvez voir la mauvaise ligne :http://jsfiddle.net/hh54188/wz2J3/
l'effet "shake" ci-dessous pourrait fonctionner, mais le trans fer does't travail donc, comment résoudre le problème? merci