您的位置:首页 > 其它

随时改变文字大小的程序

2006-10-30 08:22 330 查看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<SCRIPT language=JavaScript type=text/JavaScript>
//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
if(curfontsize>8){
document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
}
}
function fontZoomB(){
if(curfontsize<64){
document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
}
}
</SCRIPT>
<body>
<table style="WORD-BREAK: break-all">
<TR vAlign=center align=middle>
<TD style="WORD-BREAK: break-all" height=0></TD></TR>

<TR align=middle>
<TD width=581>
<P align=right>字体:<A href="javascript:fontZoomA();">缩小</A> _fcksavedurl=""javascript:fontZoomA();">缩小</A>" <A href="javascript:fontZoomB();">放大</A></P></TD></TR>
<TR>
<TD id=fontzoom style="WORD-BREAK: break-all"
vAlign=top> aaaa</TD></TR>
</TABLE>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐