Funny you should ask... I was just working on this:
PHP Code:
<SCRIPT TYPE="text/javascript">
<!--
function ShowPhoto(mylink, wintitle)
{
if (! window.focus)return true;
var href;
var width = 650;
var height = 370;
var centerX=(screen.width-width)/2;
var centerY=(screen.height-height)/2;
if (typeof(mylink) == 'string')
href=""mylink;
else
href=""mylink.href;
window.open(href, wintitle, 'top='+centerY+',left='+centerX+',width='+width+',height='+height+',scrollbars=no');
return false;
}
//-->
</script>
then just call it with:
<a href="showpic.php?photoid=<?=$pid?>" title="See Larger Version" onmouseover="window.status='ShowPhoto';return true" onMouseOut="window.status='';return true" onClick="return ShowPhoto(this, 'Photo')">
Bookmarks