Hello guys!
I have a page with 20 small images (acting like buttons)...like a thumbnail gallery.
I made a JS function for opening a pop-up window when one of these small_images are pressed. The function looks like this:
function newWindow( url, title)
{
wnd = window.open(url, title, 'toolbar=no,location=no,status=1,scrollbars=no,resizable=no,width=490,height=380')
if(window.focus)
{
wnd.focus();
}
}
And on the small_images:
<a href="javascript: newWindow('large_image1.jpg', 'windowtitle');">small_image here</a>
So...as you can see from this code I am trying to open a pop-up window with a large_image ... a JPG file who's size is: W 490 and H 380px.
THE PROBLEM is that the pop-up window appears fine, the image is there but a white border (about 10px) appears in the left and top of the image...
Regards,
Dragos.
I have a page with 20 small images (acting like buttons)...like a thumbnail gallery.
I made a JS function for opening a pop-up window when one of these small_images are pressed. The function looks like this:
function newWindow( url, title)
{
wnd = window.open(url, title, 'toolbar=no,location=no,status=1,scrollbars=no,resizable=no,width=490,height=380')
if(window.focus)
{
wnd.focus();
}
}
And on the small_images:
<a href="javascript: newWindow('large_image1.jpg', 'windowtitle');">small_image here</a>
So...as you can see from this code I am trying to open a pop-up window with a large_image ... a JPG file who's size is: W 490 and H 380px.
THE PROBLEM is that the pop-up window appears fine, the image is there but a white border (about 10px) appears in the left and top of the image...
Regards,
Dragos.