Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5626

    lwkyy
    Member

    /*=========================================================================
    * Intro 打开选中的网址或文件
    * Author xiaoheibai
    * LastModify 2008-3-22 11:16
    *==========================================================================*/
    var selText = document.selection.Text;

    if(selText != ”) {
    if(selText.indexOf(‘http://’) != -1){
    getHTTPPage(selText);
    }else{
    if(selText.indexOf(‘:/’) != -1 || selText.indexOf(‘:’) != -1) {
    editor.OpenFile(selText, 0, eeOpenAllowNewWindow);
    }
    if(document.Path != ”) {
    selText = document.Path+”+selText;
    editor.OpenFile(selText, 0, eeOpenAllowNewWindow);
    }
    }
    }
    function getHTTPPage(Page) {
    Here how to write????????
    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone