Jump to content

transparent


Recommended Posts

code

body BGCOLOR transparent. html help me

<BODY

BGCOLOR="#AAAAFF"

BACKGROUND="../graphics/bgtest.gif"

TEXT="#000000"

LINK="#0000FF"

VLINK="#FF66FF"

ALINK="#FF0000"

>

this like it http://www.htmlcodetutorial.com/document/body_bgcolor_background.html

*******************************************************************

$oIE.navigate ("about:blank")

$oIE.document.body.background = $gif

$oIE.document.body.scroll = "no"

$oIE.document.body.background.color="transparent" ;???????<------this code dont work

.................................................

thank you now

Edited by mesale0077
Link to comment
Share on other sites

1. Add _IEErrorHandlerRegister() near the top of your script, and run it from SciTE so you can see the errors in the console pane. You would see an error at .color because $oIE.document.body.background is not an object (it's just a string property that IDs the file).

2. The .body.background property is a file, and it doesn't have a .color property of its own.

3. The correct property is .body.bgcolor, not .color.

4. Try something like this to see the current values:

#include <IE.au3>

Global $sURL = "http://www.htmlcodetutorial.com/document/body_bgcolor_background.html"
Global $oIE = _IECreate($sURL, True)

Global $iBGFile = $oIE.document.body.background
ConsoleWrite("$iBGFile = " & $iBGFile & @LF)

Global $iBGColor = $oIE.document.body.bgcolor
ConsoleWrite("$iBGColor = " & $iBGColor & @LF)

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...