home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 November
/
PCWorld_2000-11_cd.bin
/
Software
/
Vyzkuste
/
Tiptrik
/
TipTrik.exe
/
Time.vbs
< prev
Wrap
Text File
|
2000-09-17
|
688b
|
26 lines
Set IEwindow = ActivateIE(330, 70, "VBScript P°φklad okna")
do while true
show IEwindow, "Je prßv∞ " & Time & " hodin a dnes je " & Date & "."
loop
function ActivateIE(width, height, title)
set handle = CreateObject("InternetExplorer.Application")
set ActivateIE = handle
handle.height = height
handle.width = width
handle.MenuBar = vbFalse
handle.navigate ("javascript:'<TITLE>" + title + "</TITLE>'")
handle.StatusBar = vbFalse
handle.ToolBar = vbFalse
handle.visible = vbTrue
do while handle.ReadyState <> 4
loop
end function
sub show(obj, text)
on error resume next
obj.document.body.innerHTML = text
if err <> 0 then Wscript.Quit
end sub