Guest Magicry Posted December 9, 2010 Report Posted December 9, 2010 Hello all and thank you in advance. My problem is me, i have very little knowledge of website design and have given it a go. i have created a javascript on my website which fades in and out photos, it works fine accept that it doesnt start immediatley, the rest of the page will load and the photos remain blank untill you either scroll or click the page. can any1 help me? the website is here so you can see for yourself. PS also having Fluidity problems so any help is appreciated. Many thanks Quote
BeeDev Posted December 10, 2010 Report Posted December 10, 2010 Your script runs fine to me. But it's running only after all images have loaded. Did you see your "Loading" bar? window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init); This line makes your fade thing run when the page has "loaded". So that means it waits for all the images and all other stuff to be fully loaded until it runs. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.