⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdc.html

📁 java编程的一些Applets例子。值得深入研究一下。
💻 HTML
字号:
<html>
<head>
   <title>clock.html</title>
   <meta name="GENERATOR" content="Mozilla/2.01Gold (Win32)">
</head>
<body>

<h1 align=center>Clock</h1>

<p>
<hr><applet code="Clock2" width="275" height="30"><param NAME="FontFamily" VALUE="Courier"><param NAME="FontSize" VALUE="20"><param NAME="DateFmt" VALUE="%c"><param NAME="BGCol" VALUE="f0f0f0"></applet>
<hr></p>

<p>Applet name: Clock 
<br>Applet Source: <a href="Clock2.java">Clock2.java 
<br></a>Import(s): java.util, java.io, java.awt, java.applet 
<br>Feature(s): image
<br>Author: <a href="mailto:pthomsen@netscape.com">Per Reedtz Thomsen</a></p>

<h2>Usage Guide:</h2>

<p>Following is a description of the parameters you can give to the applet,
and how it looks.</p>

<h3>FontFamily</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;FontFamily&quot; VALUE=&quot;FamilyName&quot;&gt;

<br></tt>where <tt>FamilyName</tt> is the name of the Font you want to
use. Currently, the fonts I can get to work are:</p>

<ul>
<li>Courier </li>

<li>Helvetica </li>

<li>TimesRoman </li>
</ul>

<p><b>Default:</b> TimesRoman</p>

<h3>FontSize</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;FontSize&quot; VALUE=&quot;Size&quot;&gt;

<br></tt>where <tt>Size</tt> is the point size you want the font to display
in.</p>

<p><b>Default</b>: 12</p>

<h3>FontWeight</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;FontWeight&quot; VALUE=&quot;Weight&quot;&gt;

<br></tt>where <tt>Weight</tt> is the weight to apply to the Font. Valid
values are: </p>

<ul>
<li>plain </li>

<li>bold </li>

<li>italic </li>
</ul>

<p>It is not possible to combine the weights.</p>

<p><b>Default</b>: plain </p>

<h3>BGCol</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;BGCol&quot; VALUE=&quot;Color&quot;&gt;

<br></tt>where Color is the hexadecimal representation of the background
color you wish to use.</p>

<p><b>Format</b>: RRGGBB</p>

<p><b>Default</b>: 'Netscape Gray' (c0c0c0)</p>

<h3>FGCol</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;FGCol&quot; VALUE=&quot;Color&quot;&gt;

<br></tt>where Color is the hexadecimal representation of the foreground
(text) color you wish to use.</p>

<p><b>Format</b>: RRGGBB</p>

<p><b>Default</b>: Black (000000)</p>

<h3>DateFmt</h3>

<p><b>Syntax</b>: <tt>&lt;PARAM NAME=&quot;DateFmt&quot; VALUE=&quot;Format&quot;&gt;

<br></tt>where <tt>Format</tt> is the format of the string you want to
display.</p>

<p>The string can contain text, as well as formatting fields. Formatting
fields begin with the '%' character. Example: <tt>%H</tt> will display
the current hour. </p>

<ul>
<li><b><tt>a</tt></b> abbreviated weekday name (3 characters) </li>

<li><b><tt>A</tt></b> full weekday name </li>

<li><b><tt>b</tt></b> abbreviated month name (3 characters) </li>

<li><b><tt>B</tt></b> full month name </li>

<li><b><tt>c</tt></b> locale's appropriate date and time representation
</li>

<li><b><tt>C</tt></b> default date and time format </li>

<li><b><tt>d</tt></b> day of month - 01 to 31 </li>

<li><b><tt>D</tt></b> date as %m/%d/%y </li>

<li><b><tt>e</tt></b> day of month - 1 to 31 (single digits are preceded
by a blank) </li>

<li><b><tt>h</tt></b> abbreviated month name (alias for %b) </li>

<li><b><tt>H</tt></b> hour - 00 to 23 </li>

<li><b><tt>I</tt></b> hour - 01 to 12 </li>

<li><b><tt>m</tt></b> month of year - 01 to 12 </li>

<li><b><tt>M</tt></b> minute - 00 to 59 </li>

<li><b><tt>p</tt></b> string containing ante-meridiem or post-meridiem
indicator (AM or PM) </li>

<li><b><tt>r</tt></b> time as %I:%M:%S %p </li>

<li><b><tt>R</tt></b> time as %H:%M </li>

<li><b><tt>S</tt></b> second - 00 to 61, allows for leap seconds </li>

<li><b><tt>T</tt></b> time as %H:%M:%S </li>

<li><b><tt>w</tt></b> day of week - Sunday = 0 </li>

<li><b><tt>y</tt></b> year within century - 00 to 99 </li>

<li><b><tt>Y</tt></b> year as ccyy (4 digits) </li>

<li><b><tt>%</tt></b> to display the '%' character in the display </li>
</ul>

<p>The following conversions from date(1) are not supported:</p>

<ul>
<li><b><tt>j</tt></b> </li>

<li><b><tt>u</tt></b> </li>

<li><b><tt>W</tt></b> </li>

<li><b><tt>n</tt></b> </li>

<li><b><tt>t</tt></b> </li>
</ul>

<p><b>Default</b>: <tt>&quot;%a, %B %e %T&quot;</tt></p>

<center><p>
<hr><a href="../index.html"><img src="../images/mantoid.gif" alt="Return to index." border=0 height=109 width=109></a></p></center>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -