Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

simple preload script and where to place it!

Discussion in 'Website Design Forum:' started by h_freezy, Jul 23, 2009.

  1. h_freezy

    h_freezy Senior Member

    I just need help to preload swf and images on my webpage. I have checked so many stupid tuts and ain't clear. They don't even know if it works. All i need is a simple code and where to place them!

    also how can i put small logo on the address bar?
  2. Greg

    Greg Active Member

  3. h_freezy

    h_freezy Senior Member

    what about the preload code/script? :)
  4. Sunburn

    Sunburn Active Member

  5. h_freezy

    h_freezy Senior Member

    yeah i did google it but all the codes didn't work for me.
    cheers greg now i know what favicon is :p
  6. Sunburn

    Sunburn Active Member

  7. h_freezy

    h_freezy Senior Member

    ???.........can't understand what you mean
  8. h_freezy

    h_freezy Senior Member

    still looking for a clean code (not javascript) to preload swf file and images pls ;)
  9. Xenonsoft

    Xenonsoft Active Member

    Hey Freezy. We use this, as we thought it best to preload images but I'm not 100% if it works or not. Our page seems to work quick enough though.

    We've placed it in the header.

    <script type="text/javascript">
    if (document.images) {
    img1 = new Image();
    img1.src = "../images/portfolio/nothing.jpg";
    img2 = new Image();
    img2.src = "../images/portfolio/small_b.jpg";
    img3 = new Image();
    img3.src = "../images/portfolio/forestlife.jpg";
    img4 = new Image();
    img4.src = "../images/portfolio/stocks_studio.jpg";
    img5 = new Image();
    img5.src = "../images/portfolio/tbtv.jpg";
  10. h_freezy

    h_freezy Senior Member

    cheers fred, will try that out and see if it makes any difference.

Share This Page