关于delphi监控浏览器 可插入异步协议就可以针对不同的类型, 做对应的处理codeproject 和 陈省 DELPHI深度历险上都有DEMO可以修改。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能不能详细说说,或者给个DEMO看看?我对这方面目前还不是很了解 感谢你的回答,我有在网上看到Delphi开发嵌入式IE浏览器监控程序,并参考其程序写了一下,在其的DoDownloadComplete这个事件里写以下代码procedure DoDownloadComplete(IEThis:IWebBrowser2);var zlystr,lystr: WideString; strlen,subi,i:integer; newstr,tempstr,Vstr,newsubstr,oldsubstr:string; ExceptionFile: String; F_Exception: TextFile;Begin //可以在该函数中处理网页文本以及图象等信息 zlystr:=(IEThis.Document as ihtmldOcument2).body.innerHTML; tempstr := zlystr; oldsubstr:= '关于'; newsubstr:= 'QQ'; Vstr:= zlystr; strlen := length(Vstr); subi:=length(oldsubstr); i := pos(oldsubstr,Vstr); newstr := ''; while i>0 do begin newstr := newstr+copy(tempstr,1,i-1)+newsubstr; delete(tempstr,1,i+subi-1); i:=pos(oldsubstr,tempstr); end; zlystr:= newstr+tempstr; (IEThis.Document as ihtmldOcument2).body.innerHTML:= zlystr;end;可是在浏览器打开网页的时候,就直接卡死,能否帮我看下,是不是不能直接 (IEThis.Document as ihtmldOcument2).body.innerHTML:= zlystr;这样子替换,还是我的代码哪边有误呢 挂接事件即可,不用什么DLL的. 关于socket连接错误的问题 请教怎么把一个grid中的数据都打印出来 我根据需要在form的panel上动态创建一些button组件(数量不定),如何确定每个组件的点击事件? 过年了,还是有一个简单问题好象用SQL语句写不出来,大家帮忙看看? 一个很急的打包程序,请各位高手指点! 关于建立C/S数据库 delphi怎么全部替换图标,我替换了以后用工具查看没有成功,只是桌面显示的图标变了 关于DBGrid中改变特定行的颜色。 这个webbrowser问题有点难度和技巧和意思。 对于大图像的转换? delphibbs不能访问了? 在memo1中通过的句子在richedit1中却卡了?
能不能详细说说,或者给个DEMO看看?我对这方面目前还不是很了解
var
zlystr,lystr: WideString;
strlen,subi,i:integer;
newstr,tempstr,Vstr,newsubstr,oldsubstr:string;
ExceptionFile: String;
F_Exception: TextFile;
Begin
//可以在该函数中处理网页文本以及图象等信息
zlystr:=(IEThis.Document as ihtmldOcument2).body.innerHTML;
tempstr := zlystr;
oldsubstr:= '关于';
newsubstr:= 'QQ';
Vstr:= zlystr;
strlen := length(Vstr);
subi:=length(oldsubstr);
i := pos(oldsubstr,Vstr);
newstr := '';
while i>0 do
begin
newstr := newstr+copy(tempstr,1,i-1)+newsubstr;
delete(tempstr,1,i+subi-1);
i:=pos(oldsubstr,tempstr);
end;
zlystr:= newstr+tempstr;
(IEThis.Document as ihtmldOcument2).body.innerHTML:= zlystr;
end;可是在浏览器打开网页的时候,就直接卡死,能否帮我看下,是不是不能直接 (IEThis.Document as ihtmldOcument2).body.innerHTML:= zlystr;这样子替换,还是我的代码哪边有误呢