Automatic image resizer

Hi everybody,

I need some help with modifying an image list:

document.write("image")
document.write("image")
document.write("image")
. . . . . . . .
document.write("image")

Right now they have default values of height and width. Is there any simple method to resize them all? Let's say, divide height and width by 4 without doing individual calculations for each picture.

I assume it would be look something like this:

document.write("image")

Am I getting it right?

Comments

  • : Hi everybody,
    :
    : I need some help with modifying an image list:
    :
    : document.write("image")
    : document.write("image")
    : document.write("image")
    : . . . . . . . .
    : document.write("image")
    :
    : Right now they have default values of height and width. Is there any
    : simple method to resize them all? Let's say, divide height and width
    : by 4 without doing individual calculations for each picture.
    :
    : I assume it would be look something like this:
    :
    : document.write("image")
    :
    : Am I getting it right?
    :
    :
    That's correct. Here's an example which sets the size of several images:
    [code]
    height = 3.1415826*50;
    document.write("image");
    document.write("image");
    height = height+10
    document.write("image");
    document.write("image");
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion