Forum Moderators: open
So I have this code writen:
<div class="hidden">
<img src="images/dfdfdf.jpg" alt="" />
<img src="images/dfdfdf2.jpg" alt="" />
....
</div>
Well, when using opera and my webpage on my local machine it works fine. When I upload the page the net and try to test it. The images do not appeared to be cached or even loaded. For example. Using the wepage on my local machine, opera says there are 71 items loading. ON the website it only says 46. The 25 images aren't being brought in. When I click on the image I have to wait for it to download (even if I wait a few minutes to make sure it had time to load (I'm using a 2500kbps connection btw)).
Anyreason why this wouldn't work? Firefox and IE work just fine.
[edited by: MingoSplash at 5:52 pm (utc) on Nov. 2, 2006]
You can achieve preloading via other CSS methods if you still need to, e.g absolutely position that hidden div "off left" :
.hidden {
position: absolute;
left: -9999px;
}
or depending on your Gallery application you might be able to position the images where they're supposed to be and use z-index to toggle their display? (you can only use z-index on a relatively or absolutely positioned element)
div.body {
z-index: 1;
}
div.hidden {
z-index: 0;
}
You will have to position your body div of course.
- John