General discussion

Locked

How to insert a logo in vbscript

By clermonts ·
I'm not a programmer but i would like to know how to insert a logo in a message box in vbscript.

i would like to know how to insert the time of my machine in my message box

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to insert a logo in vbscript

by tarun209 In reply to How to insert a logo in v ...

hi
this is the code
<html>
<body>

<script language="VBScript">
document.write("Today's date is " & date())
document.write("<br>")
document.write("The time is " & time())
msgbox time(),vbExclamation, "what to do"
</script>

</body>
</html>

you cannot use your own logos use can use inbuilt constants like
vbQuestion

Collapse -

How to insert a logo in vbscript

by clermonts In reply to How to insert a logo in v ...

Poster rated this answer

Collapse -

How to insert a logo in vbscript

by RSV In reply to How to insert a logo in v ...

HI,
You cannot insert a logo or picture in the messagebox, you can have time in the messagebox....like this.....

<html>
<head>
<script language="vbscript">
msgbox time(),vbInformation,"Current System Time"
</script>
</head>
<body>
something
</body>
</html>


GOOD LUCK...:)

Collapse -

How to insert a logo in vbscript

by clermonts In reply to How to insert a logo in v ...

Poster rated this answer

Collapse -

How to insert a logo in vbscript

by Cedric King In reply to How to insert a logo in v ...

You can't insert picture into message box.

Below is the code for inserting time (which is Text, and this is the only acceptable parameter). Hope it solve your query.

<INPUT TYPE="BUTTON" NAME="button0" VALUE="Click Here!">
<SCRIPT LANGUAGE="VBScript">
Sub button0_onclick
MsgBox date()
End Sub
</SCRIPT>

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Software Forums