...

View Full Version : Dynamic Scaling Gallery



alucardac
11-18-2010, 10:15 PM
Hello,

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.

http://jeffbark.com/

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.

http://www.deviantart.com/#/d3337hl

Old Pedant
11-18-2010, 10: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum