Web Hosting Talk







View Full Version : browsers resizing my pics issues


Shaggy42
04-06-2007, 12:59 PM
I am designing a website at home using HTML code. My problem page is a
page that I am setting up for a photo album. I got it divided into 2
frames. The top frame has the thumbnails of all the pictures I want to
display. The bottom frame is empty. When you click on a thumbnail
picture, it will load a direct link to the real picture in the bottom
frame. It does not load another web page with the picture on it, just
the picture. I know from experience that if it loads another web page
in the bottom frame with the picture on it, web browsers will not
resize the picture to fit on the screen.

When I load my web page up in Firefox and click on a thumbnail, the
picture loads fine and gets resized to fit the screen. Then I can
click on the picture to make it the original size which then goes off
the screen. This is fine, this is what I want to happen.

My problem is with IE. When I load my web site up in IE and click on a
thumbnail, it will load the picture in the bottom frame but it does
not resize it. IE will just load the original size, which goes off the
screen. I check my IE options and the resize option is turned on, so I
know it is not that. What am I doing wrong that is stopping IE from
resizing my picture to fit in the screen? Is there addition code I can
enter to make this happen?

Engelmacher
04-06-2007, 06:01 PM
Not all browsers do this, and none of them do it very well. Resize your own images if you care at all about what they look like.

horizon
04-07-2007, 08:15 PM
Using GD V.2.x+ would also be a great solution to resolve this problem.

Shaggy42
04-09-2007, 06:19 AM
Using GD V.2.x+ would also be a great solution to resolve this problem.

Not sure what that is....

horizon
04-09-2007, 06:50 AM
More details at this URL:

http://www.boutell.com/gd/

Shaggy42
04-09-2007, 02:17 PM
Thanks, I will look into that program, horizon.

Thinking from another angle... Is there some sort of code I can write to detect what type of browser is being used?

horizon
04-09-2007, 05:46 PM
There sure is. Take a look at these examples:

http://drupal.org/node/65903

;)