【www.gdgbn.com--php常用代码】
图片按比例自动伸缩效果代码
<script>
function resizepic(thispic)
{
if(thispic.width>570) thispic.width=570;
}
function bbimg(o)
{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+"%";
return false;
}
function CheckComment(){
fcm.submit();
fcm.s.disabled=true;
}
</script>然后我们只要在图片上加上
onload=resizepic(this) border=0>