fullscreen.vm

来自「一个webwork+spring+ibatis的小例子」· VM 代码 · 共 49 行

VM
49
字号
<HTML>
<HEAD>
<TITLE>$action.getText('webeditor.dialog.fullscreen.title')</TITLE>
<LINK type="text/css" rel="stylesheet" href="${action.getText('config.webeditor.path.css')}/dialog.css">
<script language="JavaScript">
	#parse("${action.getText('config.webeditor.path.js')}/dialog.js.vm")
</script>
</HEAD>
<BODY scroll="no" onunload="Minimize()">
<input type="hidden" id="ContentFullScreen" name="ContentFullScreen" value="">

<script language=javascript>

// BEGIN: URLParams holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)
var URLParams = new Object() ;

var aParams = document.location.search.substr(1).split('&') ;
for (i=0 ; i < aParams.length ; i++)
{
	var aParam = aParams[i].split('=') ;
	URLParams[aParam[0]] = aParam[1] ;
}
// END: URLParams



ContentFullScreen.value = opener.getHTML();
if(URLParams['sStyleName']=="mini")
	document.write('<iframe ID="EditorFullScreen" src="${action.getText('config.webeditor.path.action')}/webeditorMini.action?sContentID=ContentFullScreen&sFullScreen=1&sStyleName='+URLParams['style']+'" frameborder="0" scrolling=no width="100%" HEIGHT="100%"></iframe>');
else if(URLParams['sStyleName']=="standard")
	document.write('<iframe ID="EditorFullScreen" src="${action.getText('config.webeditor.path.action')}/webeditorStandard.action?sContentID=ContentFullScreen&sFullScreen=1&sStyleName='+URLParams['style']+'" frameborder="0" scrolling=no width="100%" HEIGHT="100%"></iframe>');

else if(URLParams['sStyleName']=="easy")
	document.write('<iframe ID="EditorFullScreen" src="${action.getText('config.webeditor.path.action')}/webeditorEasy.action?sContentID=ContentFullScreen&sFullScreen=1&sStyleName='+URLParams['style']+'" frameborder="0" scrolling=no width="100%" HEIGHT="100%"></iframe>');
else if(URLParams['sStyleName']=="advance")
	document.write('<iframe ID="EditorFullScreen" src="${action.getText('config.webeditor.path.action')}/webeditorAdvance.action?sContentID=ContentFullScreen&sFullScreen=1&sStyleName='+URLParams['style']+'" frameborder="0" scrolling=no width="100%" HEIGHT="100%"></iframe>');
else
	alert("$action.getText('webeditor.dialog.fullscreen.styleErrorInfo')");

function Minimize() 
{
	opener.setHTML(EditorFullScreen.getHTML());
	self.close();
}

</script>

</BODY>
</HTML>

⌨️ 快捷键说明

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