jquery拖动插件(jquery.drag)使用介绍
2023-06-13 09:15:01 时间
<htmlxmlns="http://www.w3.org/1999/xhtml"><head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8">
<title>jQueryDynamicDrag"nDrop</title>
<scripttype="text/javascript"src="http://www.webresourcesdepot.com/wp-content/uploads/file/jquerydragdrop/jquery-1.3.2.min.js"></script><styletype="text/css"></style>
<scripttype="text/javascript"src="http://www.webresourcesdepot.com/wp-content/uploads/file/jquerydragdrop/jquery-ui-1.7.1.custom.min.js"></script>
<style>
body{
font-family:Arial,Helvetica,sans-serif;
font-size:16px;
margin-top:10px;
}
ul{
margin:0;
}
#contentWrap{
width:700px;
margin:0auto;
height:auto;
overflow:hidden;
}
#contentTop{
width:600px;
padding:10px;
margin-left:30px;
}
#contentLeft{
float:left;
width:400px;
}
#contentLeftli{
list-style:none;
margin:004px0;
padding:10px;
background-color:#00CCCC;
border:#CCCCCCsolid1px;
color:#fff;
}
#contentRight{
float:right;
width:260px;
padding:10px;
background-color:#336600;
color:#FFFFFF;
}
</style>
<scripttype="text/javascript">
$(document).ready(function(){
$(function(){
$("#contentLeftul").sortable({opacity:0.5,cursor:"move",update:function(){
varid="";
$("ul.ui-sortableli").each(function(){
id+=$(this).attr("id")+"<br/>";
})
$("#contentRight").html(id);
}
});
});
});
</script>
</head>
<bodystyle="cursor:auto;">
<divid="contentWrap">
<divid="contentLeft">
<ulclass="ui-sortable">
<liid="recordsArray_3"style="opacity:1;z-index:0;"class="">3.Returnedarraycanbefoundattheright</li>
<liid="recordsArray_2">2.Draggingchangestheopacityoftheitem</li>
<liid="recordsArray_1"style="opacity:1;z-index:0;"class="">1.Oncedropped,anAjaxqueryisactivated</li>
<liid="recordsArray_4"style="opacity:1;z-index:0;"class="">4.Itisveryveryeasy</li>
<liid="recordsArray_5"style="opacity:1;z-index:0;"class="">5.Itisveryveryeasy</li>
<liid="recordsArray_6"style="opacity:1;z-index:0;"class="">6.Itisveryveryeasy</li>
<liid="recordsArray_7"style="opacity:1;z-index:0;"class="">7.Itisveryveryeasy</li>
</ul>
</div>
<divid="contentRight"></div>
</div>
</body></html>
demo地址
相关文章
- JQuery.validationEngine表单验证插件
- 响应式 jQuery Slider 插件: bxSlider
- jQuery 绘图插件:jqPlot
- 缓冲加载图片的 jQuery 插件 lazyload.js 使用方法详解
- jQuery Timers 定时插件使用详解编程语言
- jQuery Google Charts—-一个封装google chart api的jquery插件详解编程语言
- jQuery表单插件jquery.form.js详解编程语言
- jQuery延迟加载(懒加载)插件 – jquery.lazyload.js详解编程语言
- fancybox1.3.1基于Jquery的插件在IE中图片显示问题
- jQuery下扩展插件和拓展函数的写法(匿名函数使用的典型例子)
- 再次分享18个非常棒的jQuery表格插件
- JQuery之拖拽插件实现代码
- 分享27个jQuery表单插件集合推荐
- 15个款优秀的jQuery图片特效插件推荐
- php中jQuery插件autocomplate的简单使用笔记
- Jquery瀑布流插件使用介绍
- 使用jQuery.fn自定义jQuery翻页插件
- jQuery布局插件UILayout简介及使用方法
- jQuery的ajax传参巧用JSON使用示例(附Json插件)
- jQuery中filter()和find()的区别深入了解
- jquery滚动条插件jScrollPane的使用介绍
- Jquery使用FirefoxFireBug插件调试Ajax步骤讲解
- jQuery表格插件ParamQuery简单使用方法示例
- jquery操作cookie插件分享
- js点击出现悬浮窗效果不使用JQuery插件
- jQuery不使用插件及swf实现无刷新文件上传
- Jquery弹出层插件ThickBox的使用方法
- jquery.validate.js插件使用经验记录
- 使用jquery菜单插件HoverTree仿京东无限级菜单
- jquery图片播放浏览插件prettyPhoto使用详解