Results 1 to 5 of 5

Thread: CSS Preloader

  1. #1
    Join Date
    Jun 2003
    Location
    Somerset, UK
    Posts
    162

    CSS Preloader

    I was wondering if anyone could give me the code to put in a CSS file to preload images for when a user views the rest of a site. Would prefer to use CSS than javascript.

    Thank you.
    Youzo.co.uk
    http://www.youzo.co.uk
    Funky gifts, gadgets, clothing and homeware for him, for her, for the kids, for lovers, for the kids and for everything else!

  2. #2
    Join Date
    Sep 2004
    Location
    singapore
    Posts
    125
    Hi,
    I think you are worried about the flickering of the images when a user hovers on a link. If thats the case, you can combine both the images ( link + hover) as one image and change the background-position during :hover.

  3. #3
    Join Date
    Jun 2003
    Location
    Somerset, UK
    Posts
    162
    How Do I acheive this? What is the code?
    Youzo.co.uk
    http://www.youzo.co.uk
    Funky gifts, gadgets, clothing and homeware for him, for her, for the kids, for lovers, for the kids and for everything else!

  4. #4
    Join Date
    May 2004
    Location
    Pflugerville, TX
    Posts
    11,222
    The code has a lot to do with the actual images you're preloading (and whether you're indeed talking about preloading for the sake of navigation or if this is for something else on the page). Can you post a link?
    Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

  5. #5
    Join Date
    Sep 2004
    Location
    singapore
    Posts
    125
    You can also preload large images using
    http://www.netmechanic.com/news/vol6/css_no18.htm.

    Check here for more info on background-position

    http://wellstyled.com/css-nopreload-rollovers.html

Posting Permissions

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