You cannot document.write into a page that has finished loading. Something like this should work, in your page:
Code:
<iframe id="fraImage" src="default.gif"></frame>
in a script block in the main page:
Code:
function changeImage(Frame, Path)
{
var fra = document.getElementById(Frame);
fra.src = Path;
}
and in the link:
Code:
<a href="/" onclick="changeImage('fraImage', 'pathToImage.gif');return false;">View image one.</a>
--
Joe