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]