日期:2014-05-16 浏览次数:20481 次
<script type="text/javascript"> function ImgZoom(Id) { var w = Id.width; var m = 650; if(w < m) { return; } else { var h = Id.height; Id.height = parseInt(h*m/w); Id.width = m; } } void function(){ var Imgs = document.getElementById("article_content").getElementsByTagName("img"); for(i=0;i<Imgs.length;i++) { ImgZoom(Imgs[i]); } }(); </script>