1,把模板中的
<SCRIPT language=JavaScript type=text/JavaScript>
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>400) thispic.width=400;
}
//无级缩放图片大小
function bbimg(o)
{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
</SCRIPT>
换成
<script language="JavaScript" type="text/JavaScript">
//改变图片大小
function resizepic(o)
{
var maxwidth=600; //定义最大宽度
var maxheight=800; //定义最大高度
var a=new Image();
a.src=o.src
if(a.width > maxwidth){
o.style.width=maxwidth;
}
if (a.height> maxheight){
o.style.height=maxheight;
}
}
</script>
2,也可以参考官方的,http://bbs.kesion.com/dispbbs.asp?BoardID=44&ID=87161&replyID=&skin=1