SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java Script Pre loading images

    Hi all,

    I put a bit of java script in my page that makes an image change when the text right beside it is hovered over. However, the images are being called each time instead of being preloaded. Is there a way to preload the images so that the hover transitions are smoother (similar to the way it is done using css)

    site is: www.comtract.ca/aircellsite/modular.html
    The part I am talking about is under AirCell working diagram, midway down the page.

    Thanks!
    Brent

  2. #2
    SitePoint Member
    Join Date
    May 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I figured it out.
    Can anyone comment if this is correct?

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That should do it.

  4. #4
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

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