jQuery水平垂直自由拖拽代码drag.js插件

jQuery水平垂直自由拖拽代码drag.js插件-精品资源网
jQuery水平垂直自由拖拽代码drag.js插件
此内容为免费资源,请登录后查看
0
免费资源

jQuery水平垂直自由拖拽代码drag.js插件

一款基于drag.js插件实现的支持水平拖拽,垂直拖拽,自由拖拽等特效的jQuery拖拽代码。

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>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容