View Full Version : Dynamic Scaling Gallery

11-18-2010, 11:15 PM

I'm trying to make a website that has a javascript gallery that dynamically scales with the window size. This is an example of what I'm trying to do, but its written in Flash.


you can see my site at ryanwhittierhale.com. I have an image gallery set up on the site made with javascript that swaps around between divs to load in different images. I wanted to make it so the image scales to fit the window size as well. I tried to use that height= 100%; but that doesn't seem to work in certain browsers. I found an example of what I'm trying to do online that appears to be written an java. It seems to work on all the browsers I've tried it in so far. On Deviantart the images scale when you adjust the window size, very similar to what I'm trying to do.


Old Pedant
11-18-2010, 11:29 PM
No, that's written in JavaScript, not Java.

And it's just using a standard ".jpg" image.

It's just sensing changes to the window size and adjusting the size of the image, proportionately.