...

View Full Version : preload page..



elainebludfairy
09-05-2006, 07:20 PM
hello..

i have found this code preload page (http://javascript.internet.com/page-details/preload-page.html) in the javascript source..

er.. is it possible to.. um.. say when all the images have finished downloading, the layer which hides the page fades out smoothly.. not vanishing abruptly like on this sample code??

thank you :) !!

Kravvitz
09-06-2006, 04:31 AM
In some browsers, yes. However, perhaps you should try optimizing you images further instead of making your page useless to anyone using a browser that doesn't have JavaScript enabled.

The Importance of Degrading Gracefully (http://weblog.burningbird.net/archives/2005/03/25/the-importance-of-degrading-gracefully/)
Perpetuating the myths of JavaScript degradation. (http://domscripting.com/blog/display.php/25)

elainebludfairy
09-07-2006, 07:23 PM
thanks kravvitz for the reply.. yes i have thought of that.. and i have optimized all my images.. but still.. it aint pretty the way it download one by one.. and the site i am having now targeted those clients with javascript enabled most of whom i knew.. lets just say its a personal site for friends:)

..but i would keep in mind your advice when i would create a site targetting the public:thumbsup: ..

for now im still trying to learn.. i have found this code and have improved the way it looks and i was kinda wonderin' if it can be modified to create a fade out effect that is smooth..

..am also wonderin' how:D ??

Kravvitz
09-08-2006, 07:50 AM
You can use setInterval() or setTimeout() to call a function that will incrementally change the opacity of an element.

http://www.mandarindesign.com/opacityblending.html
http://www.mandarindesign.com/opacity.html
http://www.quirksmode.org/css/opacity.html

elainebludfairy
09-09-2006, 10:16 PM
thanks kravvitz:) !!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum