Disable automatic image resize

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Weng kin

    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(filen ame)
    {
    features = "height=500 , width=670, scrollbars=yes, resizable=yes";
    photo = window.open(fil ename, "Preview", features);
    }

    Could anyone advise?
    Thanx.
  • Evertjan.

    #2
    Re: Disable automatic image resize

    Weng kin wrote on 10 aug 2003 in comp.lang.javas cript:
    [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(filen ame)
    > {
    > features = "height=500 , width=670, scrollbars=yes, resizable=yes";
    > photo = window.open(fil ename, "Preview", features);
    >}[/color]

    <META HTTP-EQUIV="imagetoo lbar" 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)

    Comment

    • Evertjan.

      #3
      Re: Disable automatic image resize

      Weng kin wrote on 10 aug 2003 in comp.lang.javas cript:
      [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(filen ame)
      > {
      > features = "height=500 , width=670, scrollbars=yes, resizable=yes";
      > photo = window.open(fil ename, "Preview", features);
      >}[/color]

      <META HTTP-EQUIV="imagetoo lbar" 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)

      Comment

      • DU

        #4
        Re: Disable automatic image resize

        Evertjan. wrote:
        [color=blue]
        > Weng kin wrote on 10 aug 2003 in comp.lang.javas cript:
        >
        >[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(filen ame)
        >>{
        >> features = "height=500 , width=670, scrollbars=yes, resizable=yes";
        >> photo = window.open(fil ename, "Preview", features);
        >>}[/color]
        >
        >
        > <META HTTP-EQUIV="imagetoo lbar" 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:

        - Resources, help and tips for Netscape 7.x users and Composer
        - Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x


        Comment

        • DU

          #5
          Re: Disable automatic image resize

          Evertjan. wrote:
          [color=blue]
          > Weng kin wrote on 10 aug 2003 in comp.lang.javas cript:
          >
          >[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(filen ame)
          >>{
          >> features = "height=500 , width=670, scrollbars=yes, resizable=yes";
          >> photo = window.open(fil ename, "Preview", features);
          >>}[/color]
          >
          >
          > <META HTTP-EQUIV="imagetoo lbar" 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:

          - Resources, help and tips for Netscape 7.x users and Composer
          - Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x


          Comment

          • Weng Kin Chong

            #6
            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!

            Comment

            • Weng Kin Chong

              #7
              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!

              Comment

              Working...