Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Dynamic Scaling Gallery


    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.


  2. #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,947 Times in 4,908 Posts
    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.
    Be yourself. No one else is as qualified.


Posting Permissions

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