按比例显示图片
请头号asp中如何按比例显示图片,自动按比例缩放?
【无限缩小放大图片代码】
<input type="button" value="缩小" onclick="small1()"><input type="button" value="放大" onclick="big1()">
<br>
<BR>
<img border="0" name=images1 src="图片.jpg">
<script>
function small(){
var height1=images0.height
var width1=images0.width
images0.height=height1/1.5
images0.width=width1/1.5}
function big(){
var height1=images0.height
var width1=images0.width
images0.height=height1*1.5
images0.width=width1*1.5}
function small1(){
var height1=images1.height
var width1=images1.width
images1.height=height1/1.5
images1.width=width1/1.5}
function big1(){
var height1=images1.height
var width1=images1.width
images1.height=height1*1.5
images1.width=width1*1.5}
</script>