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 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jan 2009
    Posts
    156
    Thanks
    47
    Thanked 0 Times in 0 Posts

    Image preloader not preloading background images...

    Can this be modified so that it preloads background images that are included in my stylesheet?

    Code:
    function loadPage() {
    if (document.getElementById) { // DOM3 = IE5, NS6
    document.getElementById('preLoad').style.visibility = 'hidden';
    }
    else {
    if (document.layers) { // Netscape 4
    document.preLoad.visibility = 'hidden';
    }
    else { // IE 4
    document.all.preLoad.style.visibility = 'hidden';
    }
    }
    }
    <body OnLoad="loadPage()">

    ----------------

    Update: This works just fine...

    http://www.borislavdopudja.net/en/wr...ss_preloading/
    Last edited by Daniellez; 01-24-2009 at 10:51 PM.


 

Posting Permissions

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