I’m wondering if there’s a way in which I can resize an image automatically in a browser. I have a slide show that users can click through which uses java script to change the image that’s displayed. I effectively want the image to go into a table that’s 360 wide, but some of the images are smaller (which I don’t want to be scaled up by simply doing a width=360 command) and some are wider. Superbly of course, if I set the table width to 360, then if the image is wider it just ignores my telling it to be 360.
Is there a way I can set a table width that [B]cannot
FYI The page in question is at [URL=http://www.bedgeburyschool.co.uk/school/art.gallery/gallery.html]www.bedgeburyschool.co.uk/school/art.gallery/gallery.html
Many thanks
The position and size of an image in a document are set when the document is displayed in the web browser and cannot be changed using JavaScript (the width and height properties are read-only for these objects).[/quote](
[i]Originally posted by jpmoriarty [/i]
[B]you've not read what I've written, but thanks for trying.
I know that you can put width and height parameters into the img tag, but I'm using a java script to produce the slide show so the images will all have the same tag, but will not necessarily be the same dimensions. It's because of the degrading that I dont want to set every image to be a specific width - if it's less than 360 then it can stay as it is.
What I want, as I stated above, is some way of constraining the table so that it WILL NOT go larger than 360: that way, if the image is 300x300 (say) it will display at 300x300, but if the image is 400x400, it will not fit into the table, so it will be displayed at 360x360. [/B][/QUOTE]
[i]Originally posted by jpmoriarty [/i]
[B]thanks again but that's still not what I'm after. If I was to go to the trouble of finding out the width and height of them all then I might as well resize them in photoshop so that they're not over 360. I want to be able to leave the page to novices though, explain to them how to add new images to the page and then leave them to it. I dont want the hassle of having to go through the process of explaining how to resize images and the like if the image is over 360 etc etc. I want them to be able to add an image and have done with it.
Check your guestbook too - i went to the same school as tolkein! [/B][/QUOTE]
0.1.9 — BETA 5.19