the scrollbar issue isn't your fault - this comes by design: the pop-up is opened based on the dimensions of the full-size pic plus 16 pixels in width and height. If your stylesheet defines margin/padding values of the body that make the pic not fit in, the scrollbar is shown. To increase the space around the pic, edit displayimage.php and look for $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
$winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
Change the value "16" to something bigger (you'll have to experiment a little).
You could also re-define the margin/padding attributes for the full-size pic: edit displayimage and look for</head>
and add before it<style type="text/css">
body {
margin:0px;
padding:0px;
}
</style>
-----------------------------------
If you want to strip the pop-up of everything (scrollbar etc.), edit displayimage.php and search for $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
Change it to $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=no,toolbar=no,status=no,resizable=no,width=$winsizeX,height=$winsizeY')\">";
, but keep in mind that if you have full-size pics that are bigger than your visitor's screen resolution they won't have a chance to see the whole full-size pic (because of missing scrollbars).
GauGau