和病毒弹出一个黄网页类似的效果吧?按楼上的改了一下。unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, OleCtrls, SHDocVw, math,shellapi;//math 记得加这个单元因为用到了Randomtype TForm1 = class(TForm) WebBrowser1: TWebBrowser; Button1: TButton; Timer1: TTimer; procedure Button1Click(Sender: TObject); procedure Timer1Timer(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);begintimer1.Interval:=300000;//300000为五分钟timer1.Enabled:=true;end;procedure TForm1.Timer1Timer(Sender: TObject);var a:array[0..9] of string; i:byte;begin a[0] := 'http://www.sohu.com'; a[1] := 'http://www.163.com'; a[2] := 'http://www.cctv.com'; a[3] := 'http://www.delphibbs.com'; a[4] := 'http://www.2ccc.com'; a[5] := 'http://www.delphibox.com'; a[6] := 'http://www.sina.com'; a[7] := 'http://www.qq.com'; a[8] := 'http://www.hao123.com'; a[9] := 'http://www.zol.com.cn'; Randomize; i:=Random(10); ShellExecute(Handle, 'open',PChar(a),nil,nil,SW_SHOWNORMAL);end;end.