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