$('#drag .drg').draggable({ cursor: 'move', // sets the cursor apperance revert: 'invalid', // makes the item to return if it isn't placed into droppable revertDuration: 900, // duration while the item returns to its place opacity: 0.35 // opacity while the element is dragged }); // define options for droppable $('#drop').droppable({ accept: 'img.drg', // accept only images with class 'drg' activeClass: 'drp', // add class "drp" while an accepted item is dragged drop: function(event, ui) { // after the draggable is droped, hides it with a hide() effect ui.draggable.hide(1000); } }); // when the "#sw" element (inside the "#drop") is clicked // show the items with class "drg", contained in "#drag" $('#drop #sw').click(function(){ $('#drag .drg').slideDown(1000); });});
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)