www.webdeveloper.com
Results 1 to 2 of 2

Thread: Preloading Image in Tabs

  1. #1
    Join Date
    Dec 2008
    Posts
    126

    Preloading Image in Tabs

    Hi, I am using http://bonrouge.com/~switchcontent3 to create a page that have several hidden tab with background images. When the page is on https connection the images on the 2nd, 3rd, etc only load after it was clicked on which I believe is due to the display:none. I want to have it preloaded when the user visit the page. Is there a way to do this?

  2. #2
    Join Date
    Feb 2014
    Location
    England
    Posts
    52
    Could you use css and add a preloading div to the bottom of your page? for example:

    #preload1 { background: url(myimage.jpg) no-repeat -9999px -9999px; }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles