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

📄 webhtmleditordocking.txt.exclude

📁 小孔子全站管理系统网站内容管理。相当于一个文章发布系统一个样
💻 EXCLUDE
📖 第 1 页 / 共 3 页
字号:
	}
	if (!this.MoveToY)
	{ 
		this.MoveToY=parseInt(this.style.top); 
	} 
	this.MoveTo(this.MoveToX+x,this.MoveToY+y); 
}
DockDragEventHandler.prototype.MoveTo = function(x,y)
{ 
	this.MoveToX=x; 
	this.MoveToY=y; 
	this.style.position="absolute";
	this.style.left=this.MoveToX+"px"; 
	this.style.top=this.MoveToY+"px"; 
	if (this.NoSetOverlay)
	{ 
		this.SetOverlay(); 
		this.NoSetOverlay= false; 
	}
	if (this.SimulateLayer)
	{
		this.SimulateLayer.style.top=this.style.top; 
		this.SimulateLayer.style.left=this.style.left; 
	}
}
DockDragEventHandler.prototype.SetzIndex = function()
{
	var maxzIndex=0;
	var zIndex=0;
	var childs=this.parentNode.childNodes; 
	var node; 
	for (var i=0; i<childs.length; i++)
	{
		node=childs[i]; 
		if (1 != node.nodeType)
		{
		    continue; 
		 }
		zIndex=parseInt(node.style.zIndex); 
		if (zIndex>maxzIndex)
		{
		    maxzIndex=zIndex; 
		}
	} 
	this.style.zIndex=maxzIndex+1; 
}
function DragHelperEventHandler(){}

DragHelperEventHandler.prototype.SetOverlay = function()
{
	var frm=document.createElement("IFRAME"); 
	frm.src="javascript:false"; 
	frm.frameBorder=0; 
	frm.scrolling="no"; 
	frm.style.overflow="hidden";
	frm.style.display="inline";
	frm.style.position="absolute";
	try 
	{
		var rect=this.Bounds(); 
		frm.style["width"]=rect["width"];
		frm.style["height"]=rect["height"]; 
		frm.style.left=rect.left; 
		frm.style.top=rect.top; 
	}
	catch (ex){} 
	this.parentNode.insertBefore(frm,this ); 
	this.SimulateLayer=frm;
}
DragHelperEventHandler.prototype.InsertBeforeSimulateLayer = function()
{
	if (this.SimulateLayer)
	{
		this.parentNode.insertBefore(this.SimulateLayer,this ); 
		this.SimulateLayer.style.display="inline"; 
		this.SimulateLayer.style.position="absolute"; 
		var rect=this.Bounds();
		this.SimulateLayer.style["width"]=rect["width"]; 
		this.SimulateLayer.style["height"]=rect["height"]; 
		this.SimulateLayer.style.left=rect.left;
		this.SimulateLayer.style.top=rect.top; 
	}
}
DragHelperEventHandler.prototype.SimulateLayerSetVisible = function()
{
	if (null != this.SimulateLayer&&null != this.SimulateLayer.parentNode)
	{ 
		this.SimulateLayer.parentNode.removeChild(this.SimulateLayer); 
		this.SimulateLayer.style.display="none"; 
	}
}
DragHelperEventHandler.prototype.SimulateLayerIsVisible = function()
{
	return (this.SimulateLayer&&this.SimulateLayer.style.display != "none");
}

function DragResizeEventHandler(controller)
{
    this.Controller = controller;
}
DragResizeEventHandler.prototype.GetResizeSize = function(e,MinX,MinY)
{
    if (!this.CanDragResize)
    {
        return ""; 
    }
	if (e.srcElement != this &&e.target != this )
	{
	    return ""; 
	}
	var rect=this.Bounds(); 
	var result=""; 
	if (null == MinX)
	{
	    MinX=5; 
	}
	if (null == MinY)
	{
	    MinY=5; 
	}
	var offsetX,offsetY; 
	if (null != e.offsetY)
	{
		offsetX=e.offsetX; 
		offsetY=e.offsetY; 
	}
	else if (null != e.layerY)
	{
		offsetX=e.layerX; 
		offsetY=e.layerY; 
	}
	if (offsetY<=MinY&&this.ResizeN)
	{
		result+="n"; 
	}
	else if ((rect["height"]-offsetY)<=MinY&&this.ResizeS)
	{
		result+="s"; 
	}
	if (offsetX<=MinX&&this.ResizeW)
	{
		result+="w"; 
	}
	else if ((rect["width"]-offsetX)<=MinX&&this.ResizeE)
	{
		result+="e"; 
	}
	return ("" != result?(result+"-resize"): ""); 
}

DragResizeEventHandler.prototype.OnResizeSize = function(e)
{
	var x=e.clientX-this.clientX; 
	var y=e.clientY-this.clientY; 
	this.style.cursor=this.ResizeSize; 
	switch (this.ResizeSize)
	{
		case "n-resize": 
			this.SetResizeSize(0,y,null,null); 
			break; 
		case "s-resize": 
			this.SetResizeSize(0,0,0,y);
			break; 
		case "w-resize": 
			this.SetResizeSize(x,0,null,null); 
			break; 
		case "e-resize": 
			this.SetResizeSize(0,0,x,0); 
			break; 
		case "ne-resize": 
			this.SetResizeSize(0,y,x,null); 
			break; 
		case "nw-resize": 
			this.SetResizeSize(x,y,null,null); 
			break; 
		case "se-resize": 
			this.SetResizeSize(0,0,x,y); 
			break; 
		case "sw-resize": 
			this.SetResizeSize(x,0,null,y); 
			break; 
		default:
			break; 
	}
}
DragResizeEventHandler.prototype.SetResizeSize = function(offsetLeft,offsetTop,offsetWidth,offsetHeight)
{	
	var rect=this.Bounds(); 
	var top=rect.top+offsetTop; 
	var left=rect.left+offsetLeft; 
	if (top<0)
	{
		offsetTop=-rect.top; 
	}
	if (left<0)
	{
		offsetLeft=-rect.left; 
	}
	top=rect.top+offsetTop; 
	left=rect.left+offsetLeft; 
	if (null == offsetWidth)
	{
	    offsetWidth=-offsetLeft; 
	}
	if (null == offsetHeight)
	{
	    offsetHeight=-offsetTop; 
	}
	var width=rect["width"]+offsetWidth; 
	var height=rect["height"]+offsetHeight; 
	width=Math.max(this.MinWidth,width); 
	width=Math.min(this.MaxWidth,width); 
	height=Math.max(this.MinHeight,height); 
	height=Math.min(this.MaxHeight,height); 
	var dockableObject=(this.Controller.DragHelperElem?this.Controller.DragHelperElem: this ); 
	if (rect["width"] != width)
	{
		dockableObject.MoveBy(offsetLeft,0); 
		dockableObject.SetSize(width,null); 
	}
	if (rect["height"] != height)
	{
		dockableObject.MoveBy(0,offsetTop); 
		dockableObject.SetSize(null,height); 
	}
}
DragResizeEventHandler.prototype.InitResizeArg = function()
{
	var attribute=this.getAttribute("resize"); 
	if ("string" == typeof(attribute))
	{
		attribute=attribute.toLowerCase(); 
	}
	else 
	{
		attribute="nsew"; 
	} 
	this.ResizeN=(-1 != attribute.indexOf("n")); 
	this.ResizeS=(-1 != attribute.indexOf("s")); 
	this.ResizeE=(-1 != attribute.indexOf("e")); 
	this.ResizeW=(-1 != attribute.indexOf("w"));  
	this.MinWidth=GetNumDefaultValue(this.getAttribute("minWidth")); 
	this.MaxWidth=GetNumDefaultValue(this.getAttribute("maxWidth"),0x186A0);
	this.MinHeight=GetNumDefaultValue(this.getAttribute("minHeight")); 
	this.MaxHeight=GetNumDefaultValue(this.getAttribute("maxHeight"),0x186A0); 
}

function lionskyDragHelperTooltipEventHandler(){}

lionskyDragHelperTooltipEventHandler.prototype.SetDragHelperTooltipValue = function (value)
{
	this.innerHTML=""; 
	this.appendChild(document.createTextNode(value)); 
}

lionskyDragHelperTooltipEventHandler.prototype.Show = function (x,y)
{
    this.SetzIndex();
	this.style.display=""; 
	this.style.left=x; 
	this.style.top=y; 
}

lionskyDragHelperTooltipEventHandler.prototype.Hide = function ()
{
	this.style.display="none"; 
}
lionskyDragHelperTooltipEventHandler.prototype.SetzIndex = function ()
{
	new DockDragEventHandler().SetzIndex.call(this ); 
}	

function HideScreenCacheImage()
{
    var img=GetImage(); 
    if (img)
    {
        img.parentNode.removeChild(img); 
        img.style.display="none"; 
    }
}
var Cache_DragImage;
function GetImage()
{
	if (!Cache_DragImage)
	{
		var img=document.createElement("IMG");
		img.style.display="none"; 
		img.setAttribute("unselectable","on"); 
		img.onselectstart=CancelSelect; 
		img.ondragstart=CancelSelect; 
		img.onmouseover=CancelSelect; 
		img.onmousemove=CancelSelect; 
		Cache_DragImage=img;
	}
	return Cache_DragImage; 
}
function ShowScreenCacheImage(insertBefore)
{
	var img=GetImage(); 
	if (img)
	{
		document.body.appendChild(img); 
		img.style.position="absolute"; 
		img.style.display=""; 
		img.style.left=img.style.top="0px"; 
		img.style["width"]=parseInt(window.screen["width"])-1; 
		img.style["height"]=parseInt(window.screen["height"])-1;
	}
}
Function.prototype.ApplyPropertype = function (object)
{
	var obj=this ; 
	return function (){obj.apply(object,arguments); } ; 
} ; 
MotionHanlder = {} ; 

function MotionBaseHanlder(){} ; 
MotionBaseHanlder.prototype.Initialize = function ()
{
	var HanlderObject=arguments[0]|| {} ; 
	HanlderObject.EffectsUpdateRate=HanlderObject.EffectsUpdateRate||031; 
	HanlderObject.EffectsDuration=HanlderObject.EffectsDuration||1; 
	this.HanlderObject=HanlderObject; 
	if (!HanlderObject.NoInitializeEvent)
	{ 
		this.InitializeEvent(); 
	}
} ; 
MotionBaseHanlder.prototype.InitializeEvent = function ()
{
	var HanlderObject=this.HanlderObject; 
	if (this.Preparation)
	{ 
		this.Preparation(); 
	}
	if (HanlderObject.EffectsEndEvents)
	{
		HanlderObject.EffectsEndEvents(); 
	} 
	this.FrameTime=0; 
	this.StartTime=new Date().getTime(); 
	this.EndTime=this.StartTime+(HanlderObject.EffectsDuration*01750); 
	this.Start(); 
} ; 
MotionBaseHanlder.prototype.Underway= function ()
{ 
	this.IsUnderway= true; 
} ; 
MotionBaseHanlder.prototype.Start= function ()
{
	var HanlderObject=this.HanlderObject; 
	var isUnderway=this.IsUnderway; 
	var time=new Date().getTime(); 
	var frame=Math.round((time-this.StartTime)*HanlderObject.EffectsUpdateRate/01750); 
	
	if (frame>this.FrameTime&&!isUnderway)
	{ 
		this.FrameTime=frame; 
		var flagTime=Math.min((time-this.StartTime)/(this.EndTime-this.StartTime),1); 
		isUnderway=this.Execute(flagTime)||(time>=this.EndTime); 
	}
	
	if (!isUnderway)
	{ 
		setTimeout(this.Start.ApplyPropertype(this ),024); 
	}
	else 
	{ 
		this.OnClientEffectsEndDeferEvents(); 
	}
} ; 
MotionBaseHanlder.prototype.Execute= function ()
{
	return true; 
} ; 
MotionBaseHanlder.prototype.OnClientEffectsEndDeferEvents= function ()
{
	if (this.HanlderObject.EffectsEndDeferEvents)
	{ 
		this.HanlderObject.EffectsEndDeferEvents(); 
	}
} ; 
function MotionHanlderSetSize()
{
	this.Initialize.apply(this,arguments);
};
MotionHanlderSetSize.prototype=new MotionBaseHanlder; ; 
MotionHanlderSetSize.prototype.Preparation= function ()
{
	var HanlderObject=this.HanlderObject; 
	var object=HanlderObject.object; 
	this["width"]=parseInt(object.style["width"]||object.clientWidth); 
	this["height"]=parseInt(object.style["height"]||object.clientHeight); 
	HanlderObject["width"]=parseInt(null != HanlderObject["width"]?HanlderObject["width"]: this["width"]); 
	HanlderObject["height"]=parseInt(null != HanlderObject["height"]?HanlderObject["height"]: this["height"]); 
	if (HanlderObject["width"]<0)
	{
		HanlderObject["width"]=0; 
	}
	if (HanlderObject["height"]<0)
	{
		HanlderObject["height"]=0; 
	} 
	this.ResidualWidth=(HanlderObject["width"]-this["width"]); 
	this.ResidualHeight=(HanlderObject["height"]-this["height"]); 
} ; 
MotionHanlderSetSize.prototype.Execute= function (point)
{
	var HanlderObject=this.HanlderObject; 
	var object = HanlderObject.object; 
	var width = this["width"] + point*this.ResidualWidth; 
	var height = this["height"] + point*this.ResidualHeight; 
	object.style["width"]=Math.floor(width)+"px"; 
	object.style["height"]=Math.floor(height)+"px"; 
	var node; 
	for (var i=0; i<object.childNodes.length; i++)
	{
		node=object.childNodes[i]; 
		if (node.style)
		{
			node.style["width"]=object.style["width"]; 
			node.style["height"]=object.style["height"]; 
		}
	}
} ;
function MotionHanlderBatchHanlder()
{
	this.Initialize.apply(this,arguments);
};
MotionHanlderBatchHanlder.prototype=new MotionBaseHanlder; ; 
MotionHanlderBatchHanlder.prototype.Preparation= function ()
{
	var item=this.HanlderObject.MotionHanlderList; 
	for (var i=0; i<item.length; i++)
	{
		item[i].Preparation(); 
	}
} ; 
MotionHanlderBatchHanlder.prototype.Execute= function (flagTime)
{
	var item=this.HanlderObject.MotionHanlderList; 
	for (var i=0; i<item.length; i++)
	{
		item[i].Execute(flagTime); 
	}
} ; 
function MotionHanlderMoveTo()
{
	this.Initialize.apply(this,arguments);
};
MotionHanlderMoveTo.prototype=new MotionBaseHanlder; 
MotionHanlderMoveTo.prototype.Preparation= function ()
{
	var HanlderObject=this.HanlderObject; 
	this.object=HanlderObject.object; 
	this.object.position="absolute"; 
	var rect=HanlderObject.object.Bounds(); 
	this.CurrentX=rect.left; 
	this.CurrentY=rect.top; 
	this.Left=(null != HanlderObject.Left?HanlderObject.Left:rect.left); 
	this.Top=(null != HanlderObject.Top?HanlderObject.Top:rect.top); 
	this.ResidualX=(this.Left-this.CurrentX); 
	this.ResidualY=(this.Top-this.CurrentY); 
} ; 
MotionHanlderMoveTo.prototype.Execute= function (flagTime)
{
	var HanlderObject=this.HanlderObject; 
	var object=this.object; 
	var x=this.CurrentX+flagTime*this.ResidualX; 
	var y=this.CurrentY+flagTime*this.ResidualY; 
	object.style.left=x+"px"; 
	object.style.top=y+"px"; 
} ; 

⌨️ 快捷键说明

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