Help.Web/editor/scripts/image.htm

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style/editor.css" rel="stylesheet" type="text/css">
<script src="../../configuration/js/Public.js" language="javascript" type="text/javascript"></script>
<script src="../../configuration/js/Prototype.js" language="javascript" type="text/javascript"></script>
<script>
	var sLangDir=dialogArguments.oUtil.langDir;
	document.write("<scr"+"ipt src='language/"+sLangDir+"/image.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function doWindowFocus()
	{
	dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
	}
function bodyOnLoad()
	{	
	window.onfocus=doWindowFocus;	
	dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");

	if(dialogArguments.oUtil.obj.cmdAssetManager!="")btnAsset.style.display="block";
	
	realTime()
	}	
function openAsset()
	{
	inpImgURL.value=eval(dialogArguments.oUtil.obj.cmdAssetManager);	
	}
function modalDialogShow(url,width,height)
	{
	if(url.indexOf("?")==-1) url=url+"?ffilter=image";//no querystring
	else url=url+"&ffilter=image";
	
	return window.showModalDialog(url,window,
		"dialogWidth:"+width+"px;dialogHeight:"+height+"px;edge:Raised;center:Yes;help:No;Resizable:Yes;Maximize:Yes");
	}
	
function realTime()
	{
	if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
	var oEditor=dialogArguments.oUtil.oEditor;
	var oSel=oEditor.document.selection.createRange();
	
	if (oSel.parentElement)	oElement=oSel.parentElement();
	else oElement=oSel.item(0);
	
	clearAllProperties()
	
	if(oElement.tagName=="IMG")
		{
		//~~~~~~~~~~~~~~~~~~~~~~~~
		sTmp=oElement.outerHTML;
		sTmp=sTmp.substring(sTmp.indexOf("src")+5);
		sTmp=sTmp.substring(0,sTmp.indexOf('"'));
		var arrTmp = sTmp.split("&amp;");
		if (arrTmp.length > 1) sTmp = arrTmp.join("&");		
		inpImgURL.value=sTmp
		
		inpImgAlt.value = oElement.alt;
后面还有 422 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。