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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delay in my script within HTML ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

How do I insert a one second delay in my script within HTML ?
Thanks

Long live king Moshiach !
 
I'm not sure what you mean by "within my HTML".

There is a setTimeout() method that will execute a function after a given amount of milliseconds. You can use that to put a pause in your script.


setTimeout(functionName, timeout(ms))

[monkey][snake] <.
 
Actualy,
at the begiiniing of my HTML file I run a Vbscript that unzips a file,which is later on accessed from the HTML <body> and used as a HTML background.

What I need is to delay the HTML building after the VBscript unzip operation is over.I was thinking using some JS functionality for this.

Thanks

Long live king Moshiach !
 
I could be wrong but I don't think this can be done.

You may have to go about this in a different way.

If anyone knows to the contrary, please share your insight.

[monkey][snake] <.
 
Why does a background image need to be unzipped every time the page is requested from the server? Are you deleting the images later on for some reason?

Lee
 
In my case there is no server.
The HTML is a log file that is browsed by a support on his local computer.
In parallel I bring some more files in zip - one of them must be used as a background by the HTML.
That's how it works.

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top