I'm upgrading a basic photo gallery to use jQuery (woohoo!).
I understand the semantics of jQuery thus far, with one exception: I can't seem to wrap my brain around this whole preloading of images thing. I already have a layout complete with divs classes and ids.
Here's roughly what the image part looks like:
<div id="main">
<img id="spotHolder" src="images/somePic.jpg">
</div>
<div id="others">
<img class="otherPics" src="images/someOtherPic.jpg">
</div>
I was using a jQuery Howto as a guide for preloading images; but I don't know what I would need to do (if anything?) to the html.
Looking for an idea of what to do.