<SCRIPT language=JavaScript type=text/JavaScript>
//更改字体大小,注意函数的大小写要区分
var status0='';
function fontzoomA(){
document.getElementById('fontzoom').style.fontSize='12px';
}
function fontzoomB(){
document.getElementById('fontzoom').style.fontSize='24px';
}
function fontzoomC(){
document.getElementById('fontzoom').style.fontSize='48px';
}
</SCRIPT>
<div style=font-size:14 >
<a style="cursor:hand" onclick="fontzoomC();" >大</a>
<a style="cursor:hand" onclick="fontzoomB();" >中</a>
<a style="cursor:hand" onclick="fontzoomA();" >小</a>
</div>
调用方法
<div id=fontzoom style=font-size:14 >要更改字体大小的文本</div>