获取当前系统字体
来源:互联网 发布:软件商店下载安装 编辑:程序博客网 时间:2024/06/06 08:57
<!--
宝玉 2004-2-26
[url]http://www.webuc.net[/url]
[url]http://www.nwpubbs.net[/url]
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 获取当前系统字体和排版样式 </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function getSystemFonts(){
var a=dlgHelper.fonts.count;
var fArray = new Array();
var oDropDown = document.all.fonts;
for (i = 1;i < dlgHelper.fonts.count;i++){
fArray[i] = dlgHelper.fonts(i);
var aOptions = oDropDown.options;
var oOption = document.createElement("OPTION");
aOptions.add(oOption);
oOption.text = fArray[i];
oOption.Value = i;
}
}
function getBlockFormats(){
var a=dlgHelper.blockFormats.count;
var fArray = new Array();
var oDropDown = document.all.formats;
oDropDown.setAttribute("id","FormatList");
for (i = 1;i < dlgHelper.blockFormats.count;i++)
{
fArray[i] = dlgHelper.blockFormats(i);
var aOptions = oDropDown.options;
var oOption = document.createElement("OPTION");
aOptions.add(oOption);
oOption.text = fArray[i];
oOption.Value = i;
}
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="getSystemFonts();getBlockFormats()">
系统字体和排版样式 SystemFont and BlockFormats<BR>
<SELECT NAME="fonts" onchange="document.body.style.fontFamily = this.options[this.selectedIndex].text">
</SELECT>
<SELECT NAME="formats" onchange="document.body.style.fontFamily = this.options[this.selectedIndex].text">
</SELECT>
<OBJECT ID=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" WIDTH="0px" HEIGHT="0px"></OBJECT>
</BODY>
</HTML>
- 获取当前系统字体
- 获取当前系统字体
- JavaScript获取当前系统字体
- iOS获取 当前的系统字体
- iOS 获取系统自带的字体,打印当前字体
- c#如何获取当前系统所有的字体和颜色?
- 获取系统字体,颜色
- PPC获取系统字体
- 获取系统默认字体
- 获取系统字体列表
- Flex 获取系统字体
- IOS 获取系统字体
- java 获取系统字体
- 获取系统字体EnumFontFamilies
- javascript 获取系统字体
- Swift: 获取系统字体
- 获取当前系统用户名
- 获取系统当前语言
- 七种武器——.NET工程师求职面试必杀技
- About Jump
- 我也很想帮你,姐
- 页面管理
- 记录滚动条位置
- 获取当前系统字体
- 今天写了一个字符串转16进制的小程序,改成C++.Net。
- AJAX如何与后台交互
- 在 MyEclipse 5.1GA 上使用 XFire 编写 Web Service
- the beginning
- 速动画教程第二十五集 使用 xfire 开发 web service 应用
- AS4下安装中文包
- 什么是SVG
- Eclipse中集成Ant实现快速开发