The background image is not available as a normal image i guess. But if you lookup the body tag, it could have a background attribute. Look at: nsIDOMHTMLBodyElement.h it has a method GetBackground. Give that a try.
[EMAIL PROTECTED] wrote: > I don't have any experience working with the C++ core, but I do > know that the background images are generally done through the CSS > files/embeded style information. In javascript, you have to go through > every stylesheet parsed into the DOM and iterate through the rules > searching for url(IMAGE.EXT). > > Stephen > > Antônio Gomes wrote: > > I sent this mail to mozilla-layout but without anwaser. If you could > > help ... > > > > regards > > > > --------------070305040503080104060700 > > Content-Type: message/rfc822 > > Content-Disposition: inline; > > filename="[BgImages]" > > X-Google-AttachSize: 4936 > > > > Received: from daebh102.NOE.Nokia.com ([10.241.35.112]) by > > mzebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 14:18:08 -0400 > > Received: from esebh106.NOE.Nokia.com ([172.21.138.213]) by > > daebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 13:14:35 -0500 > > Received: from esdks003.ntc.nokia.com ([172.21.138.158]) by > > esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 21:14:23 +0300 > > X-Scanned: Wed, 31 May 2006 21:14:14 +0300 Nokia Message Protector V1.3.35 > > 2005042208 - RELEASE > > Received: (from [EMAIL PROTECTED]) > > by esdks003.ntc.nokia.com (8.12.9/8.12.9) id k4VIEEuG023386 > > for <[EMAIL PROTECTED]>; Wed, 31 May 2006 21:14:14 +0300 > > X-pstn-settings: 6 (2.00000:2.00000) p:4 r:5 m:5 c:1 > > X-pstn-version: pase:2.36 > > X-pstn-levels: s:97.60815/99.90000 p:95.91080 r:95.91080 m:97.02319 > > c:98.76780 > > X-pstn-address: from <[EMAIL PROTECTED]> > > X-pstn-spam: N > > Received: from mgw-ext03.nokia.com (131.228.20.95) > > by esdks003.ntc.nokia.com 00XMhyej; Wed, 31 May 2006 21:14:13 EEST > > Received: from lists.mozilla.org (notorious.mozilla.org [207.126.111.250]) > > by mgw-ext03.nokia.com (Switch-3.1.8/Switch-3.1.7) with ESMTP id > > k4VIEC2b020684 > > for <[EMAIL PROTECTED]>; Wed, 31 May 2006 21:14:13 +0300 > > Received: from localhost (unknown [127.0.0.1]) > > by lists.mozilla.org (Postfix) with ESMTP id 30E7D12862; > > Wed, 31 May 2006 18:14:11 +0000 (UTC) > > X-Virus-Scanned: amavisd-new at mozilla.org > > Received: from lists.mozilla.org ([127.0.0.1]) > > by localhost (lists.mozilla.org [127.0.0.1]) (amavisd-new, port 10024) > > with ESMTP id AxXFpWf11bD5; Wed, 31 May 2006 11:14:11 -0700 (PDT) > > Received: from notorious.mozilla.org (localhost.localdomain [127.0.0.1]) > > by lists.mozilla.org (Postfix) with ESMTP id BAACC12A74; > > Wed, 31 May 2006 11:14:09 -0700 (PDT) > > X-Original-To: [email protected] > > Delivered-To: [email protected] > > Received: from localhost (unknown [127.0.0.1]) > > by lists.mozilla.org (Postfix) with ESMTP id 0708512776 > > for <[email protected]>; > > Wed, 31 May 2006 18:14:08 +0000 (UTC) > > X-Virus-Scanned: amavisd-new at mozilla.org > > Received: from lists.mozilla.org ([127.0.0.1]) > > by localhost (lists.mozilla.org [127.0.0.1]) (amavisd-new, port 10024) > > with ESMTP id ZHeGX3hVMUbC for <[email protected]>; > > Wed, 31 May 2006 11:14:06 -0700 (PDT) > > Received: from mgw-ext13.nokia.com (mgw-ext13.nokia.com [131.228.20.172]) > > by lists.mozilla.org (Postfix) with ESMTP id D7B7111F3B > > for <[email protected]>; > > Wed, 31 May 2006 11:14:05 -0700 (PDT) > > Received: from esebh107.NOE.Nokia.com (esebh107.ntc.nokia.com > > [172.21.143.143]) > > by mgw-ext13.nokia.com (Switch-3.1.8/Switch-3.1.7) with ESMTP id > > k4VIE3YP000794 > > for <[email protected]>; Wed, 31 May 2006 21:14:04 +0300 > > Received: from daebh101.NOE.Nokia.com ([10.241.35.111]) by > > esebh107.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 21:13:08 +0300 > > Received: from mzebe101.NOE.Nokia.com ([172.18.99.71]) by > > daebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 13:13:01 -0500 > > Received: from [172.18.216.75] ([172.18.216.75]) by mzebe101.NOE.Nokia.com > > with Microsoft SMTPSVC(6.0.3790.1830); > > Wed, 31 May 2006 14:12:57 -0400 > > Message-ID: <[EMAIL PROTECTED]> > > Date: Wed, 31 May 2006 14:18:38 -0400 > > From: =?iso-8859-1?Q?ext_Ant=F4nio_Gomes?= <[EMAIL PROTECTED]> > > User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) > > X-Accept-Language: en-us, en > > Content-Type: text/plain; charset=ISO-8859-1 > > To: [email protected] > > X-OriginalArrivalTime: 31 May 2006 18:12:57.0678 (UTC) > > FILETIME=[D8374EE0:01C684DD] > > Subject: [BgImages] > > X-BeenThere: [email protected] > > X-Mailman-Version: 2.1.5 > > Precedence: list > > List-Id: dev-tech-layout.lists.mozilla.org > > List-Unsubscribe: <https://lists.mozilla.org/listinfo/dev-tech-layout>, > > <mailto:[EMAIL PROTECTED]> > > List-Post: <mailto:[email protected]> > > List-Help: <mailto:[EMAIL PROTECTED]> > > List-Subscribe: <https://lists.mozilla.org/listinfo/dev-tech-layout>, > > <mailto:[EMAIL PROTECTED]> > > Sender: [EMAIL PROTECTED] > > Errors-To: [EMAIL PROTECTED] > > Return-Path: [EMAIL PROTECTED] > > > > All, > > > > is there a way to get all background-image from an webpage , like it's > > possible for "common" images ? e.g. the following quoted code does not > > get them: > > > > doc->GetElementsByTagName(nsEmbedString("img"), getter_AddRefs (imgList)); > > > > > > regards, > > > > --Antonio Gomes > > > > > > > > > > > > > > > > _______________________________________________ > > dev-tech-layout mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-tech-layout > > > > > > --------------070305040503080104060700-- _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
