473,503 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable automatic image resize

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.
Jul 20 '05 #1
6 8082
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.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
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.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3
DU
Evertjan. wrote:
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:

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();
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.

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

Jul 20 '05 #4
DU
Evertjan. wrote:
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:

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();
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.

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

Jul 20 '05 #5
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!
Jul 20 '05 #6
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!
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
5300
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
3
5949
by: j0rd4n | last post by:
I have a user control that needs to allow vertical scrolling but not horizontal scrolling. In the user control's resize event, I need to adjust the size of all the children controls. For this to...
1
2570
by: profuel | last post by:
I need to create some object in WebBrowser which contains my text and which isn't resizable. I've found that Image fits all my needs except of resizing. Could somebody propose alternative to image...
2
20874
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
3
4621
by: myjish18 | last post by:
Hello, We have a DB2 UDB database v8.2.7 (db2 v8.2 fixpak 14) on AIX 5.3 which has Automatic Storage (AS) enabled. We want to disable automatic storage on entire database and/or disable...
3
2363
by: danielatdaveschool | last post by:
Hi, noob here Im using mod_python and apache2 using psp for output of page, i open a file and resize it with the following code <% import Image, util fields = util.FieldStorage(req)...
8
9375
by: infoseekar | last post by:
Image Resize & Rotation Hi I have 2 scripts, one for Image rotation and other image resize and they both are working. Image resize scripts load the picture and resize it and Image rotation...
3
7493
by: Justin | last post by:
What is the difference between automatic and DMS Auto-resize tablespace?
14
3699
anfetienne
by: anfetienne | last post by:
hi.....i have this script (below #1) that is linked to another php file SimpleImage.php (#2) im trying to get it to work on my uploaded images but it keeps coming up errors.....i haven't altered...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.