还有个问题 就是bho怎么用c#来开发

解决方案 »

  1.   

    在载入之前实现过滤,脚本无法实现,但可以在载入之后,显示之前过滤。比如:<script language="javascript">
    HTTPRequest = function()
    {
    var xmlhttp=null;
    try
    {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e1)
    {
    try
    {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(e2)
    {}
    }
    if(!xmlhttp && typeof XMLHttpRequest != 'undefined')
    {
    try
    {
    xmlhttp = new XMLHttpRequest();
    }
    catch(e3)
    {
    xmlhttp = false;
    }
    }
    return xmlhttp;
    }document.onclick=function()
    {
    if(event.srcElement.tagName=="A")
    {
    event.returnValue = false;
    var http = new HTTPRequest();
    http.open("GET",event.srcElement.href,true);
    http.onreadystatechange =function()
    {
    if (http.readyState == 4 && http.status == 200)
    {
    var html=http.responseText;
    var reg = /<img.*>/ig;
    content.innerHTML = html.replace(reg,"");
    }
    };
    http.send(null);   
    }
    }
    </script><a href="http://www.google.com">google首页(过滤所有图片)</a>
    <div id="content" style="border:1px solid #F00"></div>