Click to See Complete Forum and Search --> : Transfer a "value"?


Lon
08-26-2003, 03:25 PM
How do I transfer the value from this line:(value="40%")

<form name="per" method="document">
<input name="percent" type="radio" value="40%">40%

to this line:(height="40%")

<img src="lon 004.jpg" getimagesize("lon 004.jpg");width="40%" height="40%" alt="004">

I want to give the "image height the value from the radio button selected. This will allow the image to be resized on my page by the selected value. I don't want to open a new window, I actually want to resize several images at the sane time.

Maybe there is a script that will do this for me?

Thanks Lon

Mr J
08-26-2003, 06:36 PM
Does the following help



<script>
function resizeme(s){
document.mypic.width=s
}
</script>
<form name="per" method="document">
<input name="percent" type="radio" value="100" onclick="resizeme(this.value)">100
<input name="percent" type="radio" value="200" onclick="resizeme(this.value)">200
</form>
<img name="mypic" src="pic1.jpg" width="30" height="30" alt="004">

Fang
08-27-2003, 08:15 AM
Lon this could be regarded as spamming; entering the same post in all forums :(