Load a certain image FIRST on webpage

Discussion in 'HTML & Website Design' started by ian_ok, Dec 14, 2005.

  1. #1
    I've just added some code that will show my photo's, however my next and back image is at the bottom of the code and doesn't load until the other photo's have done so in IE.

    How can I get these images to load 1st?

    Thanks Ian
     
    ian_ok, Dec 14, 2005 IP
  2. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think the images load according to which is first in the html of the page(?) If so then you could use css and declare the image at the top of the page but declare it elsewhere, maybe......
     
    dave487, Dec 14, 2005 IP
  3. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Dave, couldn't get CSS to work and seeing that I'm using java for the images I added a bit of code to the java script to load them 1st that way.

    Thanks

    Ian
     
    ian_ok, Dec 14, 2005 IP
  4. AMysticWeb

    AMysticWeb Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Ian,

    I have a simple preload image generator here frontpageforms.com/preload_images.htm

    You can set which loads first. Generally speaking, you would want the logo and top most images to load first.
     
    AMysticWeb, Dec 14, 2005 IP