[Jquery] jquery achieves the wishing wall effect, which can be dragged or dragged by jquery.
I have recently worked out a project and found that there is a wishing wall. I will share it with you today.
First, we will briefly introduce the following functions:
- Displays the background image or background color randomly.
- Random location
- You can drag and drop to change the location.
Now, the code is attached:
<! Doctype html>
Note:
Jqueryui needs to load draggable and scale Effect. draggable supports drag and drop, while scale Effect is the Effect of click Close.
Original address click here to enter
Click here to download the instance
How can I drag a file using js or jquery?
This can be implemented using the portlet
Send me a contact information.
8023caihaobin@163.com
Send you an example
I added a drag-and-drop event for a div, which was implemented using JQuery ui. How can I release this event?
Release ?? Jquery ui is disabled
$ (Selector). draggable ("disable"); // disable the drag function.
$ (Selector). draggable ("enable"); // activate the drag function.
$ (Selector). draggable ("destory"); // Delete the drag Function