Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a Picture into a Vbscript Created Internet Explorer Message Box

Status
Not open for further replies.

Sharpharp

IS-IT--Management
Jun 9, 2009
29
0
0
GB
Hi,

I have created a message popup using:

Set IE = WScript.CreateObject("InternetExplorer.Application")
IE.FullScreen = 0
IE.MenuBar = 0
IE.ToolBar = 0
IE.StatusBar = 0
IE.addressbar = False
IE.Width = 640
IE.Height = 480
IE.Left = 0
IE.Top = 0
IE.Resizable = false
IE.Visible = true

Can anyone tell me if there is a property to insert a picture as the background to this IE window?

I can set the colour of the window using something like:

IE.Document.Write "<p><h6><font color='#666666'>Alt+F4 to close</font></h6></div>"

But I need a way to add a background picture. Any ideas?

Thanks in advance
 
Code:
IE.Document.Write "<body background='/images/image_name.gif'><p><h6><font color='#666666'>Alt+F4 to close</font></h6></div></body>"

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top