选择系统字体的控件
<OBJECT id="dlgHelper" CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></OBJECT>
<select id="the_font"></select>
<script>  
function setFont()
{
var cnt = dlgHelper.fonts.countfor (var i = 1; i < cnt; i++)
{
the_font.options[the_font.options.length] = new Option(dlgHelper.fonts(i),dlgHelper.fonts(i));
}

}
window.onload = setFont;
</script>

解决方案 »

  1.   

    <OBJECT ID="CommonDialog1" WIDTH=32 HEIGHT=32
    CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"
    CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab
    #Version=1,0,0,0">
    </OBJECT>
    <span id=Text1>测试OK</span>
    <input type=button value="open" onclick="showclr();">
    <script>
    function showclr()
    {
      CommonDialog1.CancelError = true;
      CommonDialog1.Flags = 259;
      CommonDialog1.ShowFont();
      Text1.style.fontFamily = CommonDialog1.FontName;
      Text1.style.fontSize = CommonDialog1.FontSize;
      Text1.style.color = CommonDialog1.Color;
    }
    </script>
      

  2.   

    你去看看webeditor这个在线编辑器吧对你要的东西要帮助