查看淘宝网:关于Web Editor?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/11 02:52:19
http://www.gs.snnu.edu.cn/websites/yijianfabu.aspx

这是一个发表留言的界面,其中下面那部分文本输入界面有没有人知道是怎么做出来的?是用的Web Editor吗?有源代码吗?谁能告诉我怎么用?

那个东西叫做eWebEditor,你去搜索一下,很多地方都有下载的,具体用法是:(摘自里面的说明)
<iframe id="eWebEditor1" src="iXs_Editor/ewebeditor.htm?id=content1&style=coolblue&extcss=_example/myeditorarea.css&maxlen=300" frameborder="0" scrolling="No" width="550" height="350"></iframe>
content1:关联的表单ID
coolblue:编辑器样式名称
_example/myeditorarea.css:编辑器外联样式表路径(相对于编辑器的路径或者绝对路径)
Maxlen:PopUp环境中允许返回的字符串长度

动作是用js程序实现的,共有两段。
第一段

<SCRIPT language="javascript">
<!--
function linkTo(linkUrl) {

switch (linkUrl)
{
case "返回":
if (document.all("hidappname").value=="index")

{window.location.replace("index.aspx");}

else
{
parent.frames.main.location="../appdesktop.aspx?papp="+document.all("hidpapp").value+"&appname="+document.all("hidappname").value;
}
break;

}
}
function check()
{
if (document.all("issave")=="1")
{
alert("你已经提交");
return false;
}
if (document.all("Text1").value=="")
{
alert("请输入标题");
document.all("Text1").focus();
return false;
}
if ( document.all("Text1").value.indexOf("<font")>=0 )
{
alert("对不起,标题的颜色不能定义,如果你认为重要,请选择重要");
document.all("Text1").focus();
return false;
}
if (document.all("Select1").value=="0")
{
alert("请选择信息类型");
document.all("Select1").focus();
return false;
}

}
function setpic()
{
var arr = showModalDialog("setnewspic.aspx?pic="+document.all("hidpic").value, window, "dialogWidth:250px;dialogHeight:330px;help:no;scroll:no;status:no");
if (arr!="")
{
document.all("hidpic").value=arr;
document.all("Checkbox3").checked=true;

}
else
{
document.all("Checkbox3").checked=false;
}
}
// -->
</SCRIPT>
第二段

<script language="javascript" type="text/javascript">
var config = new Object() ;
config.MenuStatus = "4";
config.CssPath = "" ;config.Version = "1.1.0" ;config.ReleaseDate = "2004-05-20" ;config.License = "Seasky Studio." ;config.StyleName = "standard_blue";config.StyleEditorHeader = "" ;config.StyleMenuHeader = "<head><link href='Style/MenuArea.css' type='text/css' rel='stylesheet'></head><body scroll='no' onConTextMenu='event.returnValue=false;'>";config.StyleDir = "standard";config.SysImage = "Image";config.UpLoadPath = "NewsPic";config.Parame = "";config.InitMode = "EDIT";config.AutoDetectPasteFromWord = true;
</script>