Give this a shot:
Code:
noalbum.onselectphoto=function(img, link){
if (link!=null) {//if this image is hyperlinked
var bob=window.open('', "", "fullscreen=1, status=1, resizable=1");
bob.document.write('<body style="margin:0;padding:0;overflow:auto;" onclick="self.close();"><center>'+
'<img alt="" title="Click to Close" border=1 src="'+link.href+'" style="visibility:hidden;">'+
'<script type="text/javascript">'+
'onload=function(){var h=window.innerHeight? window.innerHeight : document.body.clientHeight;'+
'if(h>document.images[0].offsetHeight) document.images[0].style.marginTop=h/2-document.images[0].offsetHeight/2+\'px\';'+
'document.images[0].style.visibility=\'visible\';}'+
'<\/script>');
bob.document.close();
}
return false //cancel default action when clicking on image, by returning false instead of true
}
Use it in place of your current noalbum.onselectphoto function.
Bookmarks