[Jquery] jquery achieves the wishing wall effect, which can be dragged or dragged by jquery.

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.