Disable automatic image resize

W

Weng kin

Hi everyone,

I have a problem trying to load an image without the image resizing
itself to fit into the window. My simple javascript is as follows:

function viewImage(filename)
{
features = "height=500, width=670, scrollbars=yes, resizable=yes";
photo = window.open(filename, "Preview", features);
}

Could anyone advise?
Thanx.
 
E

Evertjan.

Weng kin wrote on 10 aug 2003 in comp.lang.javascript:
Hi everyone,

I have a problem trying to load an image without the image resizing
itself to fit into the window. My simple javascript is as follows:

function viewImage(filename)
{
features = "height=500, width=670, scrollbars=yes, resizable=yes";
photo = window.open(filename, "Preview", features);
}

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

Or for a specific image, place the GALLERYIMG="no" attribute into your
IMAGE tag

You can build a html file for that.
 
D

DU

Evertjan. said:
Weng kin wrote on 10 aug 2003 in comp.lang.javascript:

This is an user setting pref in browsers these days. I think it's not a
good feature because most web programmers are not aware of default
browser css declarations involving margins, borders and padding on the
root element and body element. I also think this feature should have
been reversed: adjust the browser window dimensions to fit content, not
resize the content to fit the browser window dimensions.

Netscape/Mozilla has a wonderful function for this:
sizeToContent();
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

Or for a specific image, place the GALLERYIMG="no" attribute into your
IMAGE tag

You can build a html file for that.


In MSIE 6 for windows,

Tools/Internet Options.../Advanced tab/Multimedia section/Enable
Automatic Image Resizing
checkbox must be unchecked

In Mozilla 1.4 and NS 7.1:
Edit/Preferences.../Appearance category/Resize large images to fit the
browser window
checkbox must be unchecked

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
 
W

Weng Kin Chong

Is there anyway I can just amend the script without creating another
html file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top