当前位置:编程学习 > asp >>

html编辑器中得到系统的字体

<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT type="text/javascript">
function getSystemFonts(){
var cnt = dlgHelper.fonts.count
var str = "系统字体总数:" + cnt + " "
var list = new Array()
for (var i = 1; i < cnt; i++){
list.push(dlgHelper.fonts(i))
}
alert(str + list.sort().join(" "))
}
</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>

补充:asp教程,客户端相关打印
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,