日期:2008-08-23  浏览次数:21094 次

<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT type="text/javascript">

function getSystemFonts(){
var cnt = dlgHelper.fonts.count
var str = "系统字体总数:" + cnt + "\n\n"
var list = new Array()
for (var i = 1; i < cnt; i++){
list.push(dlgHelper.fonts(i))
}
alert(str + list.sort().join("\t"))
}
</SCRIPT>
</HEAD>
<BODY>
<OBJECT id="dlgHelper" CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></OBJECT>
<INPUT TYPE="button" value="系统字体取得" onclick="getSystemFonts()">
</BODY>
</HTML>