Just run a function to load the appropriate images when the div is shown, not sure which would be the best way to reference the image tags though, ordinal or by name.
You could wrap them in a div something like
Quote:
<script>
<!--
var YourImages = [
["pic1.jpg","pic2.jpg","pic03.jpg"],
["pic04.jpg","pic5.jpg"],
["pic6.jpg","pic7.jpg","pic8.jpg"]
]
function getImages(n){
el=document.getElementById("div"+n).getElementsByTagName("img")
for (i=0;i<YourImages[n].length;i++) {
el[i].src=YourImages[n][i]
}
}
// -->
</script>
<a href="#null" onclick="getImages(0)">Tab 1</a>
<a href="#null" onclick="getImages(1)">Tab 2</a>
<a href="#null" onclick="getImages(2)">Tab 3</a>
<BR><BR>
<div id="div0">
<img src="" id="pic0" width="150" height="75">
<img src="" id="pic1" width="150" height="75">
<img src="" id="pic2" width="150" height="75">
</div>
<div id="div1">
<img src="" id="pic0" width="150" height="75">
<img src="" id="pic1" width="150" height="75">
</div>
<div id="div2">
<img src="" id="pic0" width="150" height="75">
<img src="" id="pic1" width="150" height="75">
<img src="" id="pic2" width="150" height="75">
</div>
|