vlus
Technical User
- Sep 26, 2002
- 45
Looking at:
The script the runs the filmstrip scroller on the right, holds up the rest of the page from loading until the script and associate thumbnails have loaded.
I call the script from its position in the main body with:
What would like to do, is ... not have that script or its thumbnails start to load until the whole page has finished loading.
I thought maybe with an iframe, thinking the iframe wouldnt load until the rest of the page... but it starts to load at the same time as rest of page.
Then i was thinking somehow use onLoad from within the BODY tag, but:
a) i dont understand how to get it to load the whole script not just a function, and
b) i cant figure out how to get it to put the script where i want it within the page.
Then i was thinking maybe use onLoad in combo with the iframe, but didnt know if that would work either, thinking that maybe the onLoad would just figure when the iframe was done loading and prematurely start the js, when the rest of the page wasnt done yet.
Finally, I thought maybe write a tiny js that would check to see if the entire page has loaded, if yes, then load the scroller script in its place. The problem with that, is I do not have the knowledge to write a script from scratch.
So any waysss... i've spent the entire weekend and burnt myself out on this one... any thoughts? If it will help, I can post the JS file on the web, if seeing it would help.
Thanks in advance for any assistance!
Vick
Affordable Web Hosting - Just Pennies a Day at:
Web-Hostess.com[/LINK]
The script the runs the filmstrip scroller on the right, holds up the rest of the page from loading until the script and associate thumbnails have loaded.
I call the script from its position in the main body with:
Code:
<SCRIPT LANGUAGE="Javascript" SRC="js/Pic_Scroll_Group.js"></SCRIPT>
What would like to do, is ... not have that script or its thumbnails start to load until the whole page has finished loading.
I thought maybe with an iframe, thinking the iframe wouldnt load until the rest of the page... but it starts to load at the same time as rest of page.
Then i was thinking somehow use onLoad from within the BODY tag, but:
a) i dont understand how to get it to load the whole script not just a function, and
b) i cant figure out how to get it to put the script where i want it within the page.
Then i was thinking maybe use onLoad in combo with the iframe, but didnt know if that would work either, thinking that maybe the onLoad would just figure when the iframe was done loading and prematurely start the js, when the rest of the page wasnt done yet.
Finally, I thought maybe write a tiny js that would check to see if the entire page has loaded, if yes, then load the scroller script in its place. The problem with that, is I do not have the knowledge to write a script from scratch.
So any waysss... i've spent the entire weekend and burnt myself out on this one... any thoughts? If it will help, I can post the JS file on the web, if seeing it would help.
Thanks in advance for any assistance!
Vick
Affordable Web Hosting - Just Pennies a Day at:
Web-Hostess.com[/LINK]