⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ygddlist.js

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 JS
字号:
function ygDDList(id, sGroup) {

	if (id) {
		this.init(id, sGroup);
		this.initFrame();
		this.logger = new ygLogger("ygDDList");
	}
    
	var s = this.getDragEl().style;
	s.borderColor = "transparent";
	s.backgroundColor = "#f6f5e5";
	s.opacity = 0.76;
	s.filter = "alpha(opacity=76)";
}
ygDDList.prototype = new teems.util.DDProxy();
ygDDList.prototype.startDrag = function(x, y) {
	
	this.logger.debug(this.id + " startDrag");

	var dragEl = this.getDragEl();
	var clickEl = this.getEl();

	dragEl.innerHTML = clickEl.innerHTML;
	dragEl.className = clickEl.className;
	dragEl.style.color = clickEl.style.color;
	dragEl.style.border = "1px solid blue";

};

ygDDList.prototype.endDrag = function(e) {
	// disable moving the linked element
};

ygDDList.prototype.onDrag = function(e, id) {
    
};

ygDDList.prototype.onDragOver = function(e, id) {
	// this.logger.debug(this.id.toString() + " onDragOver " + id);
	var el;
    
    if ("string" == typeof id) {
        el = teems.util.DDM.getElement(id);
		//alert(teems.util.DDM.getElement(id).id);
    } else { 
        el = teems.util.DDM.getBestMatch(id).getEl();
    }
		var el2 = this.getEl();
		var p = el.parentNode;
		p.insertBefore(el2, el);
};

ygDDList.prototype.onDragEnter = function(e, id) {
	// this.logger.debug(this.id.toString() + " onDragEnter " + id);
	// this.getDragEl().style.border = "1px solid #449629";
};

ygDDList.prototype.onDragOut = function(e, id) {
    // I need to know when we are over nothing
	// this.getDragEl().style.border = "1px solid #964428";
};
ygDDList.prototype.endDrag = function(e, id){
	this.logger.debug( " endDrag " +this.id.toString());
	this.changePostion();
};
ygDDList.prototype.changePostion = function() {
	 
	this.logger.debug( " changePostion ");
   	var _tabsview = getTabs();
	var submitURL = "/general/tabview/tabajax.php?action=modifytabs&tabsview="+_tabsview+"&linktable=USERGROUP";
   	postXmlHttp(submitURL,showMessage);
};
function ygDDListBoundary(id, sGroup) {
	if (id) {
		this.init(id, sGroup);
		this.logger = new ygLogger("ygDDListBoundary");
		this.isBoundary = true;
	}
}

ygDDListBoundary.prototype = new teems.util.DDTarget();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -