Results 1 to 7 of 7

Thread: help with image sizing

  1. #1
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with image sizing

    i am creating a web site offline and have a question....it might be lengthy but bear with me please.....
    when i click on a thumbnail pic i am openning the pic in full size in a new window
    i have seen before on other sites where the pic auto resizes to fit page however with mouse over the pointer changes to a +magnifying glass and upon click image sizes to original and pointer changes to a -magnifying glass upon second click image resizes once again to fit screen....how is this done
    thanks

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    i am creating a web site offline and have a question....it might be lengthy but bear with me please.....
    when i click on a thumbnail pic i am openning the pic in full size in a new window
    this to open full size image in new windows
    Code:
    <a href="image.png" target="_blank">
    <img src="image.png" border="0">
    </a>
    i have seen before on other sites where the pic auto resizes to fit page however with mouse over the pointer changes to a +magnifying glass and upon click image sizes to original and pointer changes to a -magnifying glass upon second click image resizes once again to fit screen....how is this done
    thanks
    i don't get your meaning can you give us the link.

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    The magnifying is done by the browser I'm not sure when it's triggered. Possibly if the images width or height passes the opening windows screen size?

    For those that don't know what user is referring to try this: http://www.gsfc.nasa.gov/gsfc/earth/...lo17/earth.jpg
    Last edited by bluewalrus; 09-22-2009 at 04:22 AM.

  4. #4
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks bluewalrus for the example
    hope someone can help me

  5. #5
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    What size is the thumb you want vs the actual image size, does it have to be a new window or could it be in an overlay? If you can do it in an overlay lightbox would work or some variations of that you could give the thumbs a class with a percent, and remove the background color on the lightbox overlay, and that'd be similiarish.

  6. #6
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    page is made with frames
    thumbs are on bottom frame
    picture opens up in middle frame full size
    and has to be scrolled
    if pic opens in new window it has to be scrolled
    want is to open in new window and auto resize
    like the above example that was posted by bluewalrus
    thanks

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The resize/magnifying glass is not something you can control. That happens only when a browser loads an image file (not a webpage) and that image is larger than the window. Then the browser loads the image and resizes it to fit, but you can click on the image to view it full size (with scrollbars in the window).
    Internet Explorer and Firefox both do this, and other browsers vary. You cannot control this because it is just how the browsers are programmed to handle image files (that you can't program at all).
    I hope this explains what you were wondering. So, basically, do nothing, just link to the image, and it will do what you see on the other webpages.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •