用JS改变文字大小的特效
作者:admin 日期:2010-02-11
改变文字大小的JS 适合用于在 (HTM)中.
<script language="JavaScript">
function doZoom(size)
{
document.getElementById('zoom').style.fontSize=size+'px';
}
</script>
<iframe marginwidth=0 marginheight=0 frameborder=0 bordercolor=#000000 scrolling=no src="" width="100%" height="136"></iframe>
<TABLE align="center">
<TR>
<TD id="zoom">欢迎光临欢迎光临</TD>
</TR>
</TABLE>
<p> </p>
<p>【<a href="javascript:window.print()">打印</a>】【<A href="javascript:doZoom(20)">大</A>
<A href="javascript:doZoom(16)">中</A> <A
href="javascript:doZoom(12)">小</A>】【<a href="javascript:window.close();">关闭</a>】</p>
<script language="JavaScript">
function doZoom(size)
{
document.getElementById('zoom').style.fontSize=size+'px';
}
</script>
<iframe marginwidth=0 marginheight=0 frameborder=0 bordercolor=#000000 scrolling=no src="" width="100%" height="136"></iframe>
<TABLE align="center">
<TR>
<TD id="zoom">欢迎光临欢迎光临</TD>
</TR>
</TABLE>
<p> </p>
<p>【<a href="javascript:window.print()">打印</a>】【<A href="javascript:doZoom(20)">大</A>
<A href="javascript:doZoom(16)">中</A> <A
href="javascript:doZoom(12)">小</A>】【<a href="javascript:window.close();">关闭</a>】</p>
评论: 0 | 查看次数: 8847