The "imgwidth" and "imgheight" parameters were originally designed just so the script knows how to center the image based on its dimensions. But if you want the script to also actually enlarge the image using such values, simply change:
Code:
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
to:
Code:
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'" width="'+imgwidth+'px" height="'+imgheight+'px">'
Bookmarks