First, add a DIV above the table to contain the expanded image, something like:
Code:
<div id="imagearea"></div>
Then, change the function popuplinkfunc() within the script:
Code:
function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var popwin=open(imgsrc.href, "popwin", popupsetting[1])
popwin.focus()
return false
}
else
return true
}
to:
Code:
function popuplinkfunc(imgsrc){
document.getElementById("imagearea").innerHTML='<img src="'+imgsrc+'"/>'
return false
}
This should cause the image to be loaded inline on the page, inside that DIV.
Bookmarks