Jump to content

Script doesnt run until its Clicked


Guest Magicry

Recommended Posts

Guest Magicry

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...