關於訪問地址 |
答題得分者是:pceyes
|
KFC123_60201
一般會員 發表:58 回覆:18 積分:15 註冊:2006-07-25 發送簡訊給我 |
|
pceyes
尊榮會員 發表:70 回覆:657 積分:1140 註冊:2003-03-13 發送簡訊給我 |
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw, StdCtrls, ExtCtrls; type TForm1 = class(TForm) WebBrowser1: TWebBrowser; Timer1: TTimer; ListBox1: TListBox; procedure FormCreate(Sender: TObject); procedure Timer1Timer(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; indexno : integer; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin ListBox1.Items.Text := 'www.hinet.net' #13 'www.seed.net.tw' #13 'www.google.com' #13 'tw.yahoo.com' ; indexno := 0; timer1.Enabled := false; timer1.Interval := 1000*30; timer1.Enabled := true; end; procedure TForm1.Timer1Timer(Sender: TObject); begin if listbox1.Items.count > 0 then begin WebBrowser1.Navigate(listbox1.items[indexno]); if indexno < listbox1.Items.Count-1 then begin indexno := indexno 1; end else begin indexno := 0; end; end; end; end.
------
努力會更接近成功
編輯記錄
pceyes 重新編輯於 2008-02-17 09:42:29, 註解 無‧
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |