Jump to content

Recommended Posts

Posted

how can i display a pictur in the background with some text on top of it using _IEBodyWriteHTML

#include <IE.au3>
$oIE = _IECreate ()
$sHTML = "http://www.gameservers.com<a href='http://www.gameservers.com/?ref=1606093'>Click Here</a>"
$pic = 
_IEBodyWriteHTML ($oIE, $sHTML, $Pic)
Posted

You need a URL for the picture, then you can do:

$pic = "http://some.thing.com/your.jpg"
$oIE.document.body.background = $pic

Properties for the body element can be found in MSDN - see my sig.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

  • 4 years later...
Posted

You need a URL for the picture, then you can do:

$pic = "http://some.thing.com/your.jpg" $oIE.document.body.background = $pic
Properties for the body element can be found in MSDN - see my sig. Dale

Hi DaleHohm.

It is possible making banner or pic over existing _IENavigate page??

Example:

#include <IE.au3>
$oIE = _IECreate ("http://google.bg")
$pic = "<img src='http://www.autoitscript.com/site/wp-content/themes/TheCorporation/images/logo.png' background: width=265 height=100 />"
$oIE.document.body.background = $oIE
_IEBodyWriteHTML ($oIE,  $pic)

This replaces $oIE with $pic

but how to Set (work) together??

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
×
×
  • Create New...