Re: creating a 'please wait' message



It's your page - you can do it any way you want; I believe in freedom :-)
See URL:
http://msdn2.microsoft.com/en-us/library/ms535259.aspx
The following example shows how to use the IMG element to embed a bitmap
image (.bmp) on a page.
<IMG SRC=mygraphic.bmp>

It looks like you are missing the ending > character plus other problems.
HTML is just a string of characters, so the innerHTML must be a string, so
the entire img element has to be a string, as in:
"<IMG SRC=mygraphic.bmp>"
Your statement might be:
oIE.Document.body.InnerHTML = "<img src= C:\New Folder\TEST.gif>"
If your source path contained no spaces, this might work, but if you have
spaces, you need to enclose it in quote marks. " type will work, I'm not
sure if ' type will always work. So now maybe it looks like this:
oIE.Document.body.InnerHTML = "<img src= "C:\New Folder\TEST.gif">"
But there is a problem. " characters within a string have to be escaped by
changing each " to "" WITHIN the string. Now we have:

oIE.Document.body.InnerHTML = "<img src= ""C:\New Folder\TEST.gif"">"
This should work for you.

You can prove to yourself that this makes sense to VBScript by displaying
the string in a message box:
MsgBox "<img src= ""C:\New Folder\TEST.gif"">"

-Paul Randall

"CCDEAN100" <CCDEAN100@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C59D9925-F431-4C3B-A83F-8C65B3360C9A@xxxxxxxxxxxxxxxx

Hi Paul

Much to your disgust, I've managed to make the IE window as fully kiosked
as
possible, by using the .fullscreen command before resizing and
positioning.

But I still get a syntax error when trying to insert a gif. I've
replaced:

oIE.Document.body.InnerHTML = "hello world"

with

oIE.Document.body.InnerHTML = <img src= "C:\New Folder\TEST.gif"

but get a syntax error.

Can you see anything wrong?


.


Loading