Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.12.21;
Скачать: CL | DM;

Вниз

twebbrowser Как получить ссылки на которые ведут картинки?   Найти похожие ветки 

 
darkcoder   (2008-03-06 19:07) [0]

Как получить ссылки на которые ведут картинки?
<a href="нужно узнать что тут для данной картинки"><img src=""></a>
Код приведенные ниже пытался модифицировать, не вышло.

for i := 0 to EmbeddedWB1.OleObject.Document.Images.Length - 1 do
begin
    Document := Embeddedwb1.Document as IHtmlDocument2;
    // Retrieves the calculated width of the image.
   ImageWidth := Embeddedwb1.OleObject.Document.Images.Item(i).Width;
    // Retrieves the height of the image.
   ImageHeight := Embeddedwb1.OleObject.Document.Images.Item(i).Height;
    // Retrieves the file size of the image.
   ImageFileSize := (Document.Images.Item(i, 0) as IHTMLImgElement).FileSize;
    // Retrieves the entire URL that the browser uses to locate the image
   ImageHref := (Document.Images.Item(i, 0) as IHTMLImgElement).Href;
    // Retrieves a text alternative to the graphic.
   ImageTextAlternative := (Document.Images.Item(i, 0) as IHTMLImgElement).alt;
    // Show image information in a TListbox
   ListBox1.Items.Add(Format("%s : %d x %d Pixels; %s Bytes; %s",
      [ImageHref, ImageWidth, ImageHeight, ImageFileSize, ImageTextAlternative]));
  end;


 
darkcoder   (2008-03-07 00:29) [1]

решено



Страницы: 1 вся ветка

Текущий архив: 2008.12.21;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.016 c
1-1204908815
Воронтсов
2008-03-07 19:53
2008.12.21
работа с TOpenDialog


2-1226327058
Andrey_ka
2008-11-10 17:24
2008.12.21
работа с памятью


15-1224123146
Slider007
2008-10-16 06:12
2008.12.21
С днем рождения ! 16 октября 2008 четверг


15-1224831530
Kolan
2008-10-24 10:58
2008.12.21
Регулярное выражение для поиска begin и end


15-1224067337
Аскар
2008-10-15 14:42
2008.12.21
Можно ли обсуждать C++ здесь? Если нет, то где можно?