JavaScript Mootools可拖动/调整大小示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaScript Mootools可拖动/调整大小示例相关的知识,希望对你有一定的参考价值。

function resizeDrag(){
	//create an array of elements with class 'drag'
	var draggables = $ES('.drag');
	//For each of the above elements run this function(pass in the selected function el)
	draggables.each(function(el){
		//Make the element dragable. Draging starts on the element with class = handle
		el.makeDraggable({handle: el.getElementsBySelector('.handle')[0]});
		//Make the element resizable. Resizing starts on the element with class = resize
		el.makeResizable({handle: el.getElementsBySelector('.resize')[0]});
	});
}

以上是关于JavaScript Mootools可拖动/调整大小示例的主要内容,如果未能解决你的问题,请参考以下文章