Connecting Tech Pros Worldwide Forums | Help | Site Map

Disable automatic image resize

Weng kin
Guest
 
Posts: n/a
#1: Jul 20 '05
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.

Evertjan.
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Disable automatic image resize


Weng kin wrote on 10 aug 2003 in comp.lang.javascript:
[color=blue]
> 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);
>}[/color]

<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.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan.
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Disable automatic image resize


Weng kin wrote on 10 aug 2003 in comp.lang.javascript:
[color=blue]
> 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);
>}[/color]

<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.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
DU
Guest
 
Posts: n/a
#4: Jul 20 '05

re: Disable automatic image resize


Evertjan. wrote:
[color=blue]
> Weng kin wrote on 10 aug 2003 in comp.lang.javascript:
>
>[color=green]
>>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:
>>[/color][/color]

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();
[color=blue][color=green]
>>function viewImage(filename)
>>{
>> features = "height=500, width=670, scrollbars=yes, resizable=yes";
>> photo = window.open(filename, "Preview", features);
>>}[/color]
>
>
> <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.
>
>[/color]


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/doctorunc...e7Section.html

DU
Guest
 
Posts: n/a
#5: Jul 20 '05

re: Disable automatic image resize


Evertjan. wrote:
[color=blue]
> Weng kin wrote on 10 aug 2003 in comp.lang.javascript:
>
>[color=green]
>>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:
>>[/color][/color]

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();
[color=blue][color=green]
>>function viewImage(filename)
>>{
>> features = "height=500, width=670, scrollbars=yes, resizable=yes";
>> photo = window.open(filename, "Preview", features);
>>}[/color]
>
>
> <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.
>
>[/color]


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/doctorunc...e7Section.html

Weng Kin Chong
Guest
 
Posts: n/a
#6: Jul 20 '05

re: Disable automatic image resize


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Weng Kin Chong
Guest
 
Posts: n/a
#7: Jul 20 '05

re: Disable automatic image resize


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread