Hi users,
I am using two scripts in a page
- A script to setup the position of a layer
- A script to preload some images in page
The 2 scripts execute themselves at the same time, making the div i want to position at a very wrong position while images are preloading. When the preload is done, the layer "jumps" to his proper localisation in the page.
This is what i want to avoid.
The first script is called on window.onload.
Is it possible to have a delay ( or an order ) in wich the scripts execute themselves ? 1 second delay in wich the first script would position the layer correctly then start the onload phase...
Thanks in advance for your help
I am using two scripts in a page
- A script to setup the position of a layer
- A script to preload some images in page
The 2 scripts execute themselves at the same time, making the div i want to position at a very wrong position while images are preloading. When the preload is done, the layer "jumps" to his proper localisation in the page.
This is what i want to avoid.
The first script is called on window.onload.
Is it possible to have a delay ( or an order ) in wich the scripts execute themselves ? 1 second delay in wich the first script would position the layer correctly then start the onload phase...
Thanks in advance for your help