显示各种字体的脚本
<title>按+或-改变大字体大小</title>
<body bgcolor="tan" text="navy">
<span id=ids style="font-size:26">
我人有的和主产不为这
<p>
ABCDEFG
<p>
1234567890
<p>
~!@#$%^&*()_+|
</span>
</body>

<script>

status="FontSize:"+(size=26);
function document.onkeypress()
{
if(event.keyCode==("+").charCodeAt(0)||event.keyCode==("=").charCodeAt(0))
{
size++;
}
if(event.keyCode==("-").charCodeAt(0))
{
size--;
}
status="FontSize:"+size;
ids.style.fontSize=size;
}
</script>