<!-- 蛙蛙推荐:用js来格式化字符串
示例已经很明显了,不用再做什么说明了吧.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="蛙蛙王子">
<META NAME="Keywords" CONTENT="蛙蛙池塘">
<META NAME="Description" CONTENT="呱呱">
<SCRIPT LANGUAGE="JavaScript">
var page=""
page += "onlytiancai".fontcolor('red')+"使用颜色<br>"
page += "onlytiancai".bold()+"加粗<br>"
page += "onlytiancai".link("http://blog.csdn.net/onlytiancai/")+"加链接<br>"
page += "onlytiancai".anchor("guagua")+"设置一个定位点<br>"
page += "onlytiancai".big()+"稍微大一点<br>"
page += "onlytiancai".small()+"稍微小一点<br>"
page += "onlytiancai".fontsize(5)+"设置字体大小<br>"
page += "onlytiancai".italics()+"斜体<br>"
page += "onlytiancai".strike()+"中划线<br>"
page += (("onlytiancai".strike()).bold()).fontsize(5)+"复合效果<br>"
document.write(page)
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>