红栌温泉山庄在线编辑器.docx
《红栌温泉山庄在线编辑器.docx》由会员分享,可在线阅读,更多相关《红栌温泉山庄在线编辑器.docx(14页珍藏版)》请在冰豆网上搜索。
![红栌温泉山庄在线编辑器.docx](https://file1.bdocx.com/fileroot1/2023-3/30/694de7c6-bea9-4b3d-8ee7-b7b437209049/694de7c6-bea9-4b3d-8ee7-b7b4372090491.gif)
红栌温泉山庄在线编辑器
--#includefile="Startup.asp"-->
<%
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'★★
'☆红栌温泉山庄在线编辑器☆
'★★
'☆北京度假村富来宫温泉山庄★
'★★
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
%>
<%
'初始输入参数
DimsContentID,sStyleID,sFullScreen
DimsStyleName,sStyleDir,sStyleCSS,sStyleUploadDir,nStateFlag,sDetectFromWord,sInitMode,sBaseUrl,sBaseHref,sAutoRemote,sShowBorder
DimsVersion,sReleaseDate,sLicense
DimaButtonCode(),aButtonHTML()
DimsToolBar,sToolBarNormal,sToolBarFullScreen
'初始化
CallInit()
%>
红栌温泉山庄在线编辑器
varsPath=document.location.pathname;
sPath=sPath.substr(0,sPath.length-14);
varsLinkFieldName="<%=sContentID%>";
varsLinkOriginalFileName="<%=Request.QueryString("originalfilename")%>";
varsLinkSaveFileName="<%=Request.QueryString("savefilename")%>";
varsLinkSavePathFileName="<%=Request.QueryString("savepathfilename")%>";
//全局设置对象
varconfig=newObject();
config.Version="<%=sVersion%>";
config.ReleaseDate="<%=sReleaseDate%>";
config.License="<%=sLicense%>";
config.StyleName="<%=sStyleName%>";
config.StyleMenuHeader="
/MenuArea.css\"type=\"text/css\"rel=\"stylesheet\">";config.StyleDir="<%=sStyleDir%>";
config.StyleUploadDir="<%=sStyleUploadDir%>";
config.InitMode="<%=sInitMode%>";
config.AutoDetectPasteFromWord=<%=sDetectFromWord%>;
config.BaseUrl="<%=sBaseUrl%>";
config.BaseHref="<%=sBaseHref%>";
config.AutoRemote="<%=sAutoRemote%>";
config.ShowBorder="<%=sShowBorder%>";
config.ModId="<%=Request("ModId")%>";//提交过来的模板号
config.oBoardId="<%=Request("oBoardId")%>";//提交过来的栏目号
varsBaseHref="";
if(config.BaseHref!
=""){
sBaseHref="";
}
config.StyleEditorHeader="
/EditorArea.css\"type=\"text/css\"rel=\"stylesheet\">"+sBaseHref+"";
returntrue;//隐藏错误
//***辅助线
varborderShown=0
functionsBorders(){
allTables=eWebEditor.document.body.getElementsByTagName("TABLE");
for(i=0;iif(!
borderShown)
allTables[i].runtimeStyle.borderTop=allTables[i].runtimeStyle.borderLeft="1pxdotted#BFBFBF";
else
allTables[i].runtimeStyle.cssText='';
allRows=allTables[i].rows;
for(y=0;yallCells=allRows[y].cells;
for(x=0;xif(!
borderShown)
allCells[x].runtimeStyle.borderRight=allCells[x].runtimeStyle.borderBottom="1pxdotted#BFBFBF";
else
allCells[x].runtimeStyle.cssText='';
}
}
borderShown=borderShown?
0:
1;
if(!
borderShown)
eWebEditor.document.body.innerHTML=eWebEditor.document.body.innerHTML;
}
functioncopyContent()
{
eWebEditor.document.body.createTextRange().select();//选中编辑器内所有内容
eWebEditor.document.execCommand("copy","",null);//复制
}
setTimeout("sBorders();",1000);
|
<%=sToolBar%> | --
12px;color: #AAAAAA;float: right;">编辑器内核由eWebEditor提供,特此感谢! | -->
|
|
<%IfnStateFlag=1Then%>
|
"yes"Then%>style="display: none"<%EndIf%>class=StatusBarBtnOffid=eWebEditor_CODEonClick="setMode('CODE')">/modecode.gif"width=50height=15align=absmiddle> | "yes"Then%>style="display: none"<%EndIf%>width=5> | /modeedit.gif"width=50height=15align=absmiddle>
/modetext.gif"width=50height=15align=absmiddle>
/modepreview.gif"width=50height=15align=absmiddle>
12px;cursor: hand;"onClick="copyContent()">复制 | 9pt">
9pt">远程自动上传
pointer;"onClick="sizeChange(300)">/sizeplus.gif"width=20height=20alt="增高编辑区">
pointer;"onClick="sizeChange(-300)">/sizeminus.gif"width=20height=20alt="减小编辑区">
|
<%EndIf%>
hidden;OVERFLOW:
hidden;POSITION:
absolute;WIDTH:
1px;HEIGHT:
1px">