jquery.drag.js自定义div拖动布局插件

来源:https://www.sucaihuo.com/js/2477.html 2017-07-20 17:25浏览(3815) 收藏

jquery.drag.js自定义div拖动布局代码是一款jquery拖动插件,有多种拖动布局效果。
jquery.drag.js自定义div拖动布局插件
分类:悬浮层/弹出层 > 拖动 难易:初级
查看演示 下载资源 下载积分: 20 积分

js代码

<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="js/drag.js"></script>
	
	<script>
		$(function(){
			$('.box-1 dl').each(function(){
				$(this).dragging({
					move : 'x',
					randomPosition : true
				});
			});
			$('.box-2 dl').each(function(){
				$(this).dragging({
					move : 'y',
					randomPosition : true
				});
			});
			$('.box-3 dl').each(function(){
				$(this).dragging({
					move : 'both',
					randomPosition : false
				});
			});
			$('.box-4 dl').each(function(){
				$(this).dragging({
					move : 'both',
					randomPosition : true
				});
			});
			$('.box-5 dl').each(function(){
				$(this).dragging({
					move : 'both',
					randomPosition : true ,
					hander:'.hander'
				});
			});
		});
	</script>
标签: 拖动
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2