<script type="text/javascript">
function resizeImg(obj) {
var obj = document.getElementById(obj);
var objContent = obj.innerHTML;
var imgs = obj.getElementsByTagName('img');
if(imgs==null) return;
for(var i=0; i<imgs.length; i++) {
if(imgs[i].width > parseInt(obj.style.width)) {
imgs[i].width = parseInt(obj.style.width);
}
}
}
window.onload = function() {resizeImg("testDiv")}
</script>
09-03
09-03