DU said:
When you load a .jpg or .gif in a secondary window, browsers will have a
default css declarations (margins on body) on the document of that
window even if it is not a standard html file. So, your 200x200 image
needs to be in a 230hx220w window in MSIE 6 (because of body
{margin:15px 10px;} and 216hx216w in Mozilla-based browsers (because of
body {margin:8px;}). You can not easily remove such margins; you would
need to create an html file for this. It is not recommendable nor
advisable to remove margins on such windows anyway.
I can understand the no addressbar, no toolbar and no menubar but no
status bar is very much debatable.
Can you provide an url of your webpage? for which browsers you want that
code? What are the dimensions of the images? Are all images hvaing the
same dimensions? Will the images use the same popup window? Can you give
details?
Here's a simple page (which can be improved). You can have a bit more
control and customizing power (for the user) if the pointed resource is
an html file and not an image file.
Try the links with javascript enabled and javascript disabled. Try the
links with javascript enabled when the popup is behind the opener.
Right-click the link and open it in a tab or in the same window or in
another window, etc.. Try with a popup blocker.First try with automatic
image resizing off and then on: you'll see you get less with automatic
image resizing on.
In MSIE 6:
Tools/Internet Options.../Advanced tab/Multimedia section/enable
automatic image resizing
In Mozilla:
Edit/Preferences.../Appearance category/Resize large images to fit in
the browser window
Overall, 48 different combinations/possibilities.
All normal cases, possibilities should be covered and they should all be
functioning to their max. possible accessibility and efficiency.
When you do a good testing and a good coding, this is where the page
becomes hassle-free and convenient for the user.
Keep the OpenRequestedPopup.png and its title: this is a WAI guideline
and also mentioned by Nielsen. So far, several major sites are also
using such thumbnail.
http://www10.brinkster.com/doctorunclear/HTMLJavascriptCSS/EnlargeThumbnail.html
Also, you may want to read:
Popup windows and Netscape 7: interactive demos
http://www10.brinkster.com/doctorunclear/Netscape7/Popup/PopupAndNetscape7.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html