Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: preload page..

  1. #1
    New to the CF scene
    Join Date
    Apr 2006
    Location
    ..here ..there ..and everywhere!!
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    preload page..

    hello..

    i have found this code preload page 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 !!

  • #2
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Perpetuating the myths of JavaScript degradation.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

  • #3
    New to the CF scene
    Join Date
    Apr 2006
    Location
    ..here ..there ..and everywhere!!
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ..

    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 ??

  • #4
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

  • #5
    New to the CF scene
    Join Date
    Apr 2006
    Location
    ..here ..there ..and everywhere!!
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks kravvitz !!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •