With client side script, assuming you just have one page with an inline frame, you first get a reference to the main window which is "top". You then get the image, the easiest way is if it has an id, "imgMain" for example, although you could use the document.images collection. You then pass the href of the full image. So in your iframe have an onclick on the small image:
Code:
<img src="myThumbImage1.jpg" onclick="showFullImage('myFullImage1.jpg');">
or if your fullimage is just the same image but with different height and width:
Code:
<img src="myThumbImage1.jpg" onclick="showFullImage(this.src);">
Then in you iframe script block:
Code:
function showFullImage(href)
{
var imgFull = window.top.document.getElementById("imgMain");
imgFull.src = href;
}
--
Joe (
Microsoft MVP - XML)