Autoresizable image popup
Posted: Tue Mar 14, 2006 9:37 am
I have quicly wrote this:
It works ok with IE, but Firefox displays some margin around the image. How do I get rid of it?
Code: Select all
function showImage(image_url)
{
var picture = new Image();
picture.src = image_url;
window.open(image_url, '', 'width='+picture.width+', height='+picture.height+', scrollbars=0');
}