http://www.microsoft.com/china/msdn/workshop/createwp.asp

解决方案 »

  1.   

    http://www.microsoft.com/china/msdn/workshop/createwp.asp
      

  2.   

    看看 大头提供的吧:
    下载地址:
    http://bbs.sooyeah.com/dispbbs.asp?boardid=3&rootid=216&id=216&star=
      

  3.   

    http://colorweb.go.163.com/temp/ed.zip
      

  4.   

    editplus应用程序。
    ultraEdit-32应用程序。
      

  5.   

    谢谢Naola2001(摆地摊的) ,WebEdit Pro Version 3.0 用的就是IE5.5的这种功能。这么说自己也不难实现了。
    但我还是有些懒。希望可以有现成的代码,:)
      

  6.   

    http://www.insidedhtml.com/tips/contents/ts12/page1.asp
    一个教材,有代码的
      

  7.   

    下面是我自己写的,功能不是很多,你自己改改
     
    <HTML>
    <HEAD>
    <TITLE>Web Editor</TITLE>
    </HEAD>
    <BODY><script language=javascript> var replyTo=0;var gEnable=false;var cat=new Array();cat[0]=new Array();cat[0][0]="Database";cat[0][1]="Oracle";</script><script language=javascript>
    var public_gType;
    function openAttachment()

    var frameDoc,frm,style;
    style=frames("attachment").frameElement.style;
    if(style.display=="none")
    {
    style.display="inline";
    event.srcElement.innerText="Hide Attachment Selector";
    }
    else
    {
    style.display="none";
    event.srcElement.innerText="Show Attachment Selector";
    }

    //frameDoc=frames("EDITOR_IFRAME").document;
    //frm=document.editor_form;
    //frm.action="attachment.asp?back="+window.location.href;
    //frm.content.value=frameDoc.body.innerHTML;
    //frm.submit();

    }
    function initSelection()
    {
    var cat_1,i,formDoc,item,title,frm;
    formDoc=document.editor_form.document;
    cat_1=document.editor_form.cat_1;
    cat_2=document.editor_form.cat_2;
    title=document.editor_form.title; for(i=0;i<cat.length;i++)
    {
    item=formDoc.createElement("option");
    item.text=cat[i][0];
    item.value=item.text;
    cat_1.options.add(item);
    }

    if(gEnable==false)
     {
    cat_1.options(1).selected=true;
    cat_1.disabled=true;
      
    item=formDoc.createElement("option");
    item.text=cat[0][1];
    item.value=item.text;
    cat_2.options.add(item)
      
    cat_2.options(1).selected=true;
    cat_2.disabled=true;
     } if(replyTo!=0)
    {  
    title.value="Reply:";
    title.disabled=true;

    }


    function updateCat2()
    {
    var index,formDoc,item,i,cat_1,cat_2,newCat;

    formDoc=document.editor_form.document;
    cat_1=document.editor_form.cat_1;
    cat_2=document.editor_form.cat_2; newCat=cat_1.value;
    for(index=0;index<cat.length;index++)
    {
    if(cat[index][0]==newCat)
    break;
    } cat_2.innerHTML="";

    item=formDoc.createElement("option");
    item.text="Sub Class";
    item.value="NONE";
    cat_2.options.add(item);
       
    for(i=1;index<cat.length && i<cat[index].length;i++)
    {
    item=formDoc.createElement("option");
    item.text=cat[index][i];
    item.value=item.text;
    cat_2.options.add(item);
    }}function clickEditorButton(command)
    {
    frames("EDITOR_IFRAME").document.execCommand(command);
    }function downEditorButton(srcObj)
    {
    style=srcObj.style;
    //style.borderRight="1px solid buttonhighlight";
        style.border="1px solid #00008b";
        //style.borderLeft="1px solid #00008b"; 
    //style.borderBottom="1px solid buttonhighlight";
    }function overEditorButton(srcObj)
    {
    style=srcObj.style;
    //style.borderRight="1px solid buttonshadow";
        //style.borderTop="1px solid buttonhighlight";
        //style.borderLeft="1px solid buttonhighlight"; 
        //style.borderBottom="1px solid buttonshadow";
        style.cursor="hand";
    }function leaveEditorButton(srcObj)
    {
    //srcObj.style.border="1px solid menu";
    srcObj.style.border="1px solid #0066cc";
    }function ltrim ( s ) 

    return s.replace( /^\s*/, "" ) 
    } function rtrim ( s ) 

    return s.replace( /\s*$/, "" ); 

    function trim ( s ) 

    return rtrim(ltrim(s)); 
    } function submitDoc(dest)
    { var frameDoc,frm,bInvalidInput,state_cat,state_title;
    frameDoc=frames("EDITOR_IFRAME").document;
    frm=document.editor_form;
    frm.content.value=frameDoc.body.innerHTML;
    if (replyTo==0)
    frm.replyto.value="";
    else
    frm.replyto.value=replyTo;
    if(frm.cat_1.value=="NONE")
    {alert("Please Specify a Primary Category for Your Document!");bInvalidInput=true;return false;}
    if(frm.cat_2.value=="NONE")
    {alert("Please Specify a Subsidiary Category for Your Document!");bInvalidInput=true;return false}
    if(trim(frm.title.value)=="")
    {alert("Please Specify a Title for Your Document!");bInvalidInput=true;return false}
    if(trim(frm.title.value).length>39) 
    {alert("The Title should not longer than 40 characters!");bInvalidInput=true;return false}
    if(frm.content.value.length<1)
    {alert("The Document is too short!");bInvalidInput=true;return false}
    if(!bInvalidInput)
    {
    frames("EDITOR_IFRAME").document.designMode="off";
    state_cat=frm.cat_1.disabled;
    state_title=frm.title.disabled;
    frm.cat_1.disabled=false;
    frm.cat_2.disabled=false;
    frm.title.disabled=false;
    //if(document.upload.file.value!="")
    // document.upload.submit();
    //alert(frm.title.value);
    frm.action=dest;
    frm.submit();
    //frames(editorWindow.id+"_IFRAME").document.execCommand("InsertImage",false,"D:\\word.gif");
    //frames(editorWindow.id+"_IFRAME").focus()
    frm.cat_1.disabled=state_cat;
    frm.cat_2.disabled=state_cat;
    frm.title.disabled=state_title;
    }
    return true;

    }
    </script>
      

  8.   

    <div id=MyEditor style="CURSOR: default">
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=delete style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('delete');" height=16 src="editorIcon/delete.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=cut style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('cut');" height=16 src="editorIcon/cut.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=copy style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('copy');" height=16 src="editorIcon/copy.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=paste style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('paste');" height=16 src="editorIcon/paste.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=undo style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('undo');" height=16 src="editorIcon/undo.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=redo style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('redo');" height=16 src="editorIcon/redo.gif" width=16 >

    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=bold style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('bold');" height=16 src="editorIcon/bold.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=italic style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('italic');" height=16 src="editorIcon/italic.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=underline style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('underline');" height=16 src="editorIcon/underline.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="align left" style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('justifyleft');" height=16 src="editorIcon/aleft.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="align center" style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('justifycenter');" height=16 src="editorIcon/acenter.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="align right" style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('justifyright');" height=16 src="editorIcon/aright.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=numbering style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('insertorderedlist');" height=16 src="editorIcon/numlist.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title=bullets style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('insertunorderedlist');" height=16 src="editorIcon/bullist.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="decreast indent" style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('outdent');" height=16 src="editorIcon/outdent.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="increast indent" style="BORDER-RIGHT: #0066cc 1px  solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick="clickEditorButton('indent');" height=16 src="editorIcon/indent.gif" width=16 >
    <IMG onmousedown=downEditorButton(this); onmouseover=overEditorButton(this); onmouseleave=leaveEditorButton(this); title="insert a file" style="BORDER-RIGHT: #0066cc 1px solid; BORDER-TOP: #0066cc 1px solid; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; BORDER-BOTTOM: #0066cc 1px solid" onclick=insertFile(); height=16 src="editorIcon/img.gif" width=16 >
    <form target=_self method="post" name=editor_form 
    >
    </form>
    <p></p>
        <font onmousedown=downEditorButton(this); style 
            ="BORDER-RIGHT: #0066cc 1px 
           solid; PADDING-RIGHT: 
           0px; BORDER-TOP: #0066cc 1px solid; PADDING-LEFT: 0px; FONT-SIZE: 16px; BACKGROUND: #f1f5fa; PADDING-BOTTOM: 0px; MARGIN: 5px; BORDER-LEFT: #0066cc 1px solid; COLOR: #0066cc; PADDING-TOP: 0px; BORDER-BOTTOM: #0066cc 1px solid" align="left" onclick="openAttachment();" onmouseover="overEditorButton(this);" onmouseleave=leaveEditorButton(this);>Show Attachment Selector
        </font>
    <p></p>
    <iframe id="EDITOR_IFRAME" name="editorFrame" width="100%" src="foot.asp">
    <p>abcd</p>
    </iframe> <p></p>
        <div onmousedown=downEditorButton(this); style  ="BORDER-RIGHT: #0066cc 1px solid; BORDER-TOP: #0066cc 1px solid; FONT-WEIGHT: bolder; FONT-SIZE: 16px; BACKGROUND: #f1f5fa; BORDER-LEFT: #0066cc 1px solid; COLOR: #0066cc; BORDER-BOTTOM: #0066cc 1px solid" align="center" onclick="submitDoc('post.asp');" onmouseover="overEditorButton(this);" onmouseleave=leaveEditorButton(this);>Submit</a>
    </div>
    <script language=JavaScript>
    initSelection()
    frames("EDITOR_IFRAME").document.designMode="on";
    </script>
    </IFRAME>
    <p></p>
    </BODY>
    </HTML>
      

  9.   

    to: net_lover(孟子E章) 
       
        你给的链接为什么无法下载?
      

  10.   

    网易的空间现在限制了外部直接访问非html文件,所以只能从网易的网页连出来,让net_lover(孟子E章)在主页上做个连接吧。
      

  11.   

    看看吧!绝对经典http://www.1000script.com/script/go.asp?id=237
      

  12.   

    你到218.31.124.197/gov/login.asp
    用户名test1-test7密码同用户名
    到“讨论中心“发表文章处看看,要的是不是这个,如果是给我发信
    [email protected]