The DIV drag class of javascript supports dragging under FF, which is easy to call.

Source: Internet
Author: User

Call Method
Onmousedown = "MyMove. Move ('infokuang ', event, 1 )"
The question I want to ask is: how to automatically suck to a specified place when I drag to a specified place.
Equivalent to drag and drop Layout
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = UTF-8 "/> <title> Div Move Temp </title> <style> # InfoKuang {position: absolute; width: 130px; height: 85px; z-index: 1; filter: alpha (Opacity = 60, style = 0); opacity: 0.6; padding: 3px; border: 1px dashed #000000; z-index: 5000; bottom: 31px; font-size: 9pt;} # InfoKuang ul {margin: 1px; padding: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; color: #000000; background-color: #0 faead;} # InfoKuang li {height: 24px; padding: 1px; line-height: 24px ;} </style> </pead> <body> click I call to drag the window <ul> <li> </ul> <li> display window </ li> </ul> <li> maximized window </li> </ul> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

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.