Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: GC - helmikuu 05, 2006, 12:47:37 AP

Otsikko: Making an image spin until page is loaded?
Kirjoitti: GC - helmikuu 05, 2006, 12:47:37 AP
Ok i need ALOT of help with this. I want it so when you click like anywhere on the forums, that in the middle of the page, you see a hovering image, that goes from the left side of a web browser to the right side. It would be a black bar like thing, and a Spinning leaf thing. I have the image (well I know how to make it) But how do I code it? It will have to stay there until the page finishes loading. and doesn't pop-up after you click the link, It will have to be when you click the link.
Otsikko: Re: Making an image spin until page is loaded?
Kirjoitti: H - helmikuu 05, 2006, 03:50:45 AP
I don't know the exact code but:

Using javascript you can make the picture be there until the page has loaded and then make it disappear

This might help http://javascript.internet.com/page-details/preload-page.html
Otsikko: Re: Making an image spin until page is loaded?
Kirjoitti: GC - helmikuu 06, 2006, 04:28:23 IP
Thanks alot.
Otsikko: Re: Making an image spin until page is loaded?
Kirjoitti: H - helmikuu 06, 2006, 04:52:03 IP
No problem :D.

I would be interested in seeing a proper working example. Have you got a link?