English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a js fading slideshow that runs on my webpage. It starts before the page has fully loaded. It slows down the loading of the page.

2007-05-19 08:50:31 · 3 answers · asked by mike p 2 in Computers & Internet Programming & Design

3 answers

You need to wait till the document is finished loading, to see this you can use the "document.onreadystatechange"
eg.

2007-05-19 09:06:04 · answer #1 · answered by Riekkie 2 · 1 0

i replaced into questioning that with a number of those codes that has been given the percentfile sizes could desire to be an identical or you've got issues, yet i could desire to be incorrect. you're purely finding for a undemanding 'image replace' with a mouse overecode, it won't be too no longer undemanding to locate a dozen different undemanding approaches to do it. Kepp attempting by using trial and mistake until one works the way you have chose. Even HTML editor courses like FrontPage has those applications equipped into it and is in a position to artwork. Goodluck and desire you artwork it out ! All else fails; google Java mouse overs or java image swaps

2017-01-10 08:57:49 · answer #2 · answered by Anonymous · 0 0

var pictureArray = new Array(12); //the number of images.
pictureArray[0] = new Image();
pictureArray[0].src = 'images/picture1.jpg'; // preloads images
etc.

I hope this helps.

2007-05-19 09:00:59 · answer #3 · answered by AnalProgrammer 7 · 0 1

fedest.com, questions and answers