在Web应用程序上拖动和移动按钮

在Web应用程序上拖动和移动按钮

问题描述:

我有一个网络应用程序,但用户希望能够将webform周围的按钮和其他控件移动到他们想要的位置。(拖动到他们想要按钮的位置)

Web应用程序没有鼠标事件参数,所以我该怎么做或者能够做这样的事情?



提前使用。

I have an web app, but the users wants to be able to move buttons and other controls around the webform to where they want it.(Drag to where they want the button to be)
Web apps doesn't have mouse event arguments, so how can I do that or will I be able to do something like this ?

Thanx in advance.

通过使用JQuery获取它,如果有人需要它发布代码。



Got it by using JQuery, posting the code if someone needs it.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.js"></script>




 <script type="text/javascript">


(窗口).load(function(){
(window).load(function () {


(document).ready(function(){
(document).ready(function () {