You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

170 lines
7.9 KiB

  1. <html>
  2. <head>
  3. <title>Font</title>
  4. <!--Create the Dialog Helper Object--></head>
  5. <BODY style="FONT-SIZE: 9pt; FONT-FAMILY: Arial" bgColor="#dbd8d1" leftMargin="5" topMargin="5" onload="initDlg()" onunload="closeDlg()">
  6. <script language="javascript" src="fontdlg_l.js"></script>
  7. <table id="table3" style="BORDER-TOP: white 1px solid; FONT-SIZE: 9pt; WIDTH: 100%; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: Arial; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: gray" cellSpacing="2" cellPadding="2" border="0">
  8. <tr>
  9. <td width="30"><span id="btnFont" style="BORDER-RIGHT: white 1px inset; BORDER-TOP: white 1px inset; BORDER-LEFT: white 1px inset; CURSOR: pointer; BORDER-BOTTOM: white 1px inset; BACKGROUND-COLOR: #dbd8d1" onclick="showFont();">Font </span></td>
  10. <td width="50"><span id="btnBorders" style="BORDER-RIGHT: white 1px outset; BORDER-TOP: white 1px outset; BORDER-LEFT: white 1px outset; CURSOR: pointer; BORDER-BOTTOM: white 1px outset; BACKGROUND-COLOR: #dbd8d1" onclick="showBorders();">Borders </span></td>
  11. <td></td>
  12. </tr>
  13. </table>
  14. <table id="table1" style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; BORDER-COLLAPSE: collapse" cellPadding="2" border="0">
  15. <tr>
  16. <td>Font:<br>
  17. <input id="txtFont" style="FONT-SIZE: 9pt; WIDTH: 150px; FONT-FAMILY: Arial" type="text" onchange="OnFontChange1()" size="20">
  18. </td>
  19. <td>Style:<br>
  20. <input id="txtStyle" style="FONT-SIZE: 9pt; WIDTH: 100px; FONT-FAMILY: Arial" readOnly type="text" size="20">
  21. </td>
  22. <td>Size:<br>
  23. <input id="txtSize" style="FONT-SIZE: 9pt; WIDTH: 80px; FONT-FAMILY: Arial" type="text" onchange="OnSizeChange1()" size="20">
  24. </td>
  25. </tr>
  26. <tr>
  27. <td><select id="selFont" style="FONT-SIZE: 9pt; WIDTH: 150px; FONT-FAMILY: Arial; HEIGHT: 150px" onchange="OnFontChange()" size="10"></select>
  28. </td>
  29. <td><select id="selStyle" style="FONT-SIZE: 9pt; WIDTH: 100px; FONT-FAMILY: Arial; HEIGHT: 150px" onchange="OnStyleChange()" size="10">
  30. <option>Regular</option>
  31. <option>Italic</option>
  32. <option>Bold</option>
  33. <option>Italic Bold</option>
  34. </select></td>
  35. <td><select id="selSize" style="FONT-SIZE: 9pt; WIDTH: 80px; FONT-FAMILY: Arial; HEIGHT: 150px" onchange="OnSizeChange()" size="10">
  36. <option>6pt</option>
  37. <option>8pt</option>
  38. <option>9pt</option>
  39. <option>10pt</option>
  40. <option>11pt</option>
  41. <option>12pt</option>
  42. <option>14pt</option>
  43. <option>16pt</option>
  44. <option>18pt</option>
  45. <option>20pt</option>
  46. <option>22pt</option>
  47. <option>24pt</option>
  48. <option>26pt</option>
  49. <option>28pt</option>
  50. <option>36pt</option>
  51. <option>48pt</option>
  52. <option>72pt</option>
  53. </select></td>
  54. </tr>
  55. <tr>
  56. <td><input id="chkUnderline" onclick="OnUnderline()" type="checkbox" value="un">Underline<br>
  57. <input id="chkStrike" onclick="OnLineThrough()" type="checkbox" value="st">Strikethrough<br>
  58. </td>
  59. <td colSpan="2">
  60. </td>
  61. </tr>
  62. <tr>
  63. <td></td>
  64. <td colSpan="2"></td>
  65. </tr>
  66. <tr>
  67. <td>Horizontal alignment:<br>
  68. <select id="selHalign" style="FONT-SIZE: 9pt; WIDTH: 150px; FONT-FAMILY: Arial">
  69. <option selected></option>
  70. <option value="left">Left</option>
  71. <option value="center">Center</option>
  72. <option value="right">Right</option>
  73. <option value="justify">Justify</option>
  74. </select><br>
  75. </td>
  76. <td colSpan="2">Vertical alignment:<br>
  77. <select id="selValign" style="FONT-SIZE: 9pt; WIDTH: 150px; FONT-FAMILY: Arial">
  78. <option selected></option>
  79. <option value="top">Top</option>
  80. <option value="middle">Middle</option>
  81. <option value="bottom">Bottom</option>
  82. </select><br>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td><input id="btnFC" style="BORDER-RIGHT: 1px outset; BORDER-TOP: 1px outset; BORDER-LEFT: 1px outset; WIDTH: 40px; BORDER-BOTTOM: 1px outset; HEIGHT: 20px" onclick="chooseColor();" type="button">
  87. Font color<br>
  88. <input id="btnBG" style="BORDER-RIGHT: 1px outset; BORDER-TOP: 1px outset; BORDER-LEFT: 1px outset; WIDTH: 40px; BORDER-BOTTOM: 1px outset; HEIGHT: 20px" onclick="chooseBgColor();" type="button">
  89. Background<br>
  90. </td>
  91. <td colSpan="2">Preview:<br>
  92. <div id="preview" contentEditable="true" style="BORDER-RIGHT: 2px inset; BORDER-TOP: 2px inset; OVERFLOW: auto; BORDER-LEFT: 2px inset; WIDTH: 178px; BORDER-BOTTOM: 2px inset; HEIGHT: 85px">Sample
  93. Text
  94. <div></div>
  95. </div>
  96. </td>
  97. </tr>
  98. </table>
  99. <table id="table2" style="DISPLAY: none; FONT-SIZE: 9pt; FONT-FAMILY: Arial; BORDER-COLLAPSE: collapse" cellPadding="2" border="0">
  100. <tr height="50">
  101. <td valign="top">Border Line Style:</td>
  102. <td valign="top">
  103. <SELECT id="borderStyle" size="8" style="width:200px; font-size: 9pt; font-family: Arial;" onchange="setBorderWidthSelect(this.value)">
  104. <OPTION>Dashed</OPTION>
  105. <OPTION>Dotted</OPTION>
  106. <OPTION selected>Solid</OPTION>
  107. <OPTION>Double</OPTION>
  108. <!-- <OPTION>Groove</OPTION>
  109. <OPTION>Inset</OPTION>
  110. <OPTION>Outset</OPTION>
  111. <OPTION>Ridge</OPTION>-->
  112. </SELECT>
  113. </td>
  114. </tr>
  115. <tr height="25">
  116. <td valign="top"><span id="borderlinelabel">Border Line Width:</span></td>
  117. <td valign="top">
  118. <SELECT id="borderWidth" size="1" style="width:200px; font-size: 9pt; font-family: Arial;">
  119. <OPTION value="1px" selected>thin</OPTION>
  120. <OPTION value="2px" >medium</OPTION>
  121. <OPTION value="3px">thick</OPTION>
  122. <!-- <OPTION>3px</OPTION>
  123. <OPTION>4px</OPTION>
  124. <OPTION>5px</OPTION>
  125. <OPTION>6px</OPTION>
  126. <OPTION>7px</OPTION>
  127. <OPTION>8px</OPTION> -->
  128. </SELECT>
  129. </td>
  130. </tr>
  131. <tr height="25">
  132. <td valign="top">Border Line Color:</span></td>
  133. <td valign="top">
  134. <input id="btnBorderColor" style="BORDER-RIGHT: 1px outset; BORDER-TOP: 1px outset; BORDER-LEFT: 1px outset; WIDTH: 40px; BORDER-BOTTOM: 1px outset; HEIGHT: 20px; background-color:black;" onclick="chooseBorderColor();" type="button">
  135. </td>
  136. </tr>
  137. <tr height="50">
  138. <td colspan="2">
  139. <table width="100%">
  140. <tr>
  141. <td align="right"><img id="b1" src="b1.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  142. <td align="right"><img id="b2" src="b2.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  143. <td align="right"><img id="b3" src="b3.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  144. <td align="right"><img id="b4" src="b4.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  145. </tr>
  146. <tr>
  147. <td align="right"><img id="b5" src="b5.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  148. <td align="right"><img id="b6" src="b6.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  149. <td align="right"><img id="b7" src="b7.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  150. <td align="right"><img id="b8" src="b8.gif" style="border:3px ridge white; cursor:pointer; width:45px; height:45px;" onclick="clickBorderBtn(event);"></td>
  151. </tr>
  152. </table>
  153. </td>
  154. </tr>
  155. <tr>
  156. </tr>
  157. </table>
  158. <table width="343" border="0" cellpadding="5" style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; BORDER-COLLAPSE: collapse">
  159. <tr>
  160. <td width="100%" align="right">
  161. <input type="button" value="OK" style="FONT-SIZE: 9pt; WIDTH: 90px; FONT-FAMILY: Arial; HEIGHT: 25px" onclick="FontOk()">
  162. <input type="button" value="Cancel" style="FONT-SIZE: 9pt; WIDTH: 90px; FONT-FAMILY: Arial; HEIGHT: 25px" onclick="window.close()">
  163. </td>
  164. </tr>
  165. </table>
  166. </BODY>
  167. </html>