How do I transfer a "value"?

windows

Guest
How do I transfer the value from this line:(value="40%")<br />
<br />
<form name="per" method="document"><br />
<input name="percent" type="radio" value="40%">40% <br />
<br />
to this line:(height="40%")<br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"lon 004.jpg" getimagesize("lon 004.jpg");width="40%" height="40%" alt="004"><br />
<br />
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.<br />
<br />
Maybe there is a script that will do this for me?<br />
<br />
Thanks Lon<!--content-->This should work but it's not been tested:<br />
<br />
<script type="text/javascript"><!--<br />
<br />
function resizeimg(h){<br />
<br />
document.getElementById("imgchangeheight").style.height=h;<br />
<br />
}<br />
<br />
//--></script><br />
<br />
</head><body><br />
<br />
<form name="per" method="document"> <br />
<input name="percent" type="radio" value="40%" onclick="resizeimg("40%");">40% <br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"lon 004.jpg" id="imgchangeheight" width="40%" height="40%" alt="004"><!--content-->
 
Back
Top