Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2008.12.21;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.04 c
15-1223578886
@!!ex
2008-10-09 23:01
2008.12.21
Подскажите карисвых научных вещей


8-1188473003
T54
2007-08-30 15:23
2008.12.21
TVideoGraber


2-1226172821
Надуев Алексей
2008-11-08 22:33
2008.12.21
WebBrowser


15-1224068636
Iris
2008-10-15 15:03
2008.12.21
Не работает debug


15-1224078829
БарЛог
2008-10-15 17:53
2008.12.21
PHP imagecopymerge





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский