Click to See Complete Forum and Search --> : Modify Code


Johns
05-04-2003, 03:39 PM
How can I modify the following line of code to auto resize
the jpg to a certain width and height. I would like to use this line of code within an application many times with different images.


Function back() {
parent.frames[1].location.href="file:d:/docs/rollover/300.jpg"
}

AdamGundry
05-04-2003, 03:44 PM
You can't with a JPG file, because there is no way of modifying a raw image. You could create a HTML page with nothing in it but the image, then use Javascript to pass the size on the query string, and document.write() the <img> tag. Make sure you use appropriate <noscript> tags also.

Adam