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

📄 hollywoodtext.html

📁 国外的一些较好的APPLET收集(含原码)!
💻 HTML
字号:
<HTML>
<HEAD>
<META name="keywords" content="HollywoodText, HollywoodText.class, free applet, free java applet, java applet, applet collection, Free-Applets.com, free-applets.com, FREE-APPLETS.COM, FreeApplets.com, FreeApplets">
<META NAME="description" CONTENT="The HollywoodText free applet displays text with the look of those computer terminal displays that exist only in the movies.">
<META NAME="Copyright" CONTENT="Clayton Roberts, 1998">
<TITLE>HollywoodText free applet</TITLE>
<!--// The HollywoodText free applet displays text with the look of those computer terminal displays that exist only in the movies. //-->
</HEAD>
<body bgcolor="WHITE" text="BLACK" link="blue" vlink="lightblue" leftmargin=50>
<basefont size=4>
<center>
<font color="Blue"><h1>HollywoodText free applet</h1></font>
by<br>
<A HREF="mailto:bgiel@ct2.nai.net?subject=Regarding HollywoodText free java applet from Free-Applets.com"><b>Bill Giel</b></a><br>
<A HREF="http://w3.nai.net/~rvdi/bgiel/bill.htm" target="_top">w3.nai.net/~rvdi/bgiel</A>
<br><br>
<hr>
The HollywoodText free applet displays text with the look of those computer terminal displays that exist only in the movies.
 But now you can have one on your homepage.
<p>
<br>
<applet code="HollywoodText.class" width="304" height="204">
<param name="cabbase" value="HollywoodText.cab">
<param name="bgcolor" value="#000000">
<param name="fgcolor" value="#00FF00">
<param name="sound" value="blip.au">
<param name="cpause" value="25">
<param name="lpause" value="250">
<param name="spause" value="500">
<param name="loop" value="0">
<param name="script" value="demo.txt">
<param name="lspace" value="15">
<param name="fontsize" value="12">
<param name="cursor" value="3">
<param name="indent" value="2">
<param name="initx" value="20">
<param name="inity" value="20">
<param name="bgimage" value="demo.gif">
<param name="maxy" value="160">
 You don't have java! Why don't you get: <a href="http://www.microsoft.com/ie">Microsoft Explorer</a>
</APPLET>
</CENTER>
<hr>
The HollywoodText java applet is free for non-commercial or non-profit purposes. Please refer to the source file HollywoodText.java for further information.<br>
<center>
Click here to download:
<br>
<a href="HollywoodText.zip"><b>HollywoodText.zip</b></a>
<br>
<a href="HollywoodText.java"><b>HollywoodText.java</b></a>
</center>
<br><hr><br>
<h2>java applet parameters</h2>
<table>
<tr>
<td bgcolor="blanchedalmond">
<code>
<pre>
&lt;applet code=&quot;HollywoodText.class&quot; width=&quot;304&quot; height=&quot;204&quot;&gt;<br>
&lt;param name=&quot;cabbase&quot; value=&quot;HollywoodText.cab&quot;&gt;<br>
&lt;param name=&quot;bgcolor&quot; value=&quot;#000000&quot;&gt;<br>
&lt;param name=&quot;fgcolor&quot; value=&quot;#00FF00&quot;&gt;<br>
&lt;param name=&quot;sound&quot; value=&quot;blip.au&quot;&gt;<br>
&lt;param name=&quot;cpause&quot; value=&quot;25&quot;&gt;<br>
&lt;param name=&quot;lpause&quot; value=&quot;250&quot;&gt;<br>
&lt;param name=&quot;spause&quot; value=&quot;500&quot;&gt;<br>
&lt;param name=&quot;loop&quot; value=&quot;0&quot;&gt;<br>
&lt;param name=&quot;script&quot; value=&quot;demo.txt&quot;&gt;<br>
&lt;param name=&quot;lspace&quot; value=&quot;15&quot;&gt;<br>
&lt;param name=&quot;fontsize&quot; value=&quot;12&quot;&gt;<br>
&lt;param name=&quot;cursor&quot; value=&quot;3&quot;&gt;<br>
&lt;param name=&quot;indent&quot; value=&quot;2&quot;&gt;<br>
&lt;param name=&quot;initx&quot; value=&quot;20&quot;&gt;<br>
&lt;param name=&quot;inity&quot; value=&quot;20&quot;&gt;<br>
&lt;param name=&quot;bgimage&quot; value=&quot;demo.gif&quot;&gt;<br>
&lt;param name=&quot;maxy&quot; value=&quot;160&quot;&gt;<br>
 You don't have java! Why don't you get: &lt;a href=&quot;http://www.microsoft.com/ie&quot;&gt;Microsoft Explorer&lt;/a&gt;<br>
&lt;/APPLET&gt;<br>

</pre>
</code>
</td>
</tr>
</table>
<br clear=all>
<br><br>
<p>
To use the <b>HollywoodText</b> free java applet, I
<ul>
<li><font color="Teal">Step 1:</font>  Downloaded <b>HollywoodText.zip</b> and extracted into my web page directory. IMPORTANT: All file and folder names must be preserved exactly as zipped.</li>
<p>
<li><font color="Teal">Step 2:</font>  Viewed <b>HollywoodText.html</b> with my java enabled browser.</li>
</ul>

<br clear=all>
<p><br><p>
<h2>java applet parameter values</h2>
You do not have to implement all of these parameters. Only a few are actually required. The first parameter, CABBASE is for MS Internet Explorer browsers and is really not a specific parameter
of this java applet. It tells Explorer to download a compressed version of the applet, resulting in improved performance.
<p>
HollywoodText consists of a single class file, <strong><tt>HollywoodText.class</tt></strong>.
For the demo, a background image, <strong><tt>demo.gif</tt></strong>
is provided, as well as a sample text script, <strong><tt>demo.txt</tt></strong>.
An Explorer-compatible CAB file, <strong><tt>HollywoodText.cab</tt></strong>
is also provided which can be uploaded to your web directory for
the benefit of visitors running Explorer (use the CABBASE
parameter, see sample HTML below.)
<p>The following table describes the formal parameters of the
applet:</p>
<div align="center"><center>

<table border="2" cellpadding="5">
    <tr>
        <td><strong>Name</strong></td>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
        <td><strong>Default Value</strong></td>
    </tr>
    <tr>
        <td>HEIGHT</td>
        <td>int</td>
        <td>The height of the java applet panel in pixels, this is
        really not a parameter but rather an attribute of the
        applet tag. You should set the applet height to the
        vertical size of your background image (if you use one.) <strong>Required.</strong></td>
        <td>None</td>
    </tr>
    <tr>
        <td>WIDTH</td>
        <td>int</td>
        <td>The width of the java applet panel in pixels. Like HEIGHT,
        it also is an attribute of the applet tag, and should be
        set to the horizontal size of your background image, if
        you use one. <strong>Required.</strong></td>
        <td>None</td>
    </tr>
    <tr>
        <td>BGCOLOR</td>
        <td>String</td>
        <td>The color of the simulated screen background of the
        applet. Even if you provide an image (such as in the
        demo) the actual portion of the image where text is
        displayed should be an opaque color (in the demo, it is
        black.) If you do not use an image, this color will be
        used to paint the java applet panel. Colors are entered as
        hexadecimal RGB triplets, such as #FFFFFF or FFFFFF for
        white.</td>
        <td>Black<br>
        (000000)</td>
    </tr>
    <tr>
        <td>FGCOLOR</td>
        <td>String</td>
        <td>The color used to paint the text, entered as a
        hexadecimal RGB triplet, such as #000000 or 000000 for
        black.</td>
        <td>Green<br>
        (00FF00)</td>
    </tr>
    <tr>
        <td>SOUND</td>
        <td>String</td>
        <td>The name of an audio file (.au format) that will be
        played as each character is displayed. This should be a
        short clip, no longer then the delay setting for
        character pauses (by default 25 milliseconds.) The name
        specified should be relative to the applet's codebase. The
        easiest way to ensure this is to simply place your sound
        clip in the same directory as the java applet class file, and then
        just provide the filename for this parameter.</td>
        <td>None</td>
    </tr>
    <tr>
        <td>CPAUSE</td>
        <td>int</td>
        <td>The pause interval over which the text display engine
        will sleep in between each character that is displayed,
        in milliseconds.</td>
        <td>25 ms</td>
    </tr>
    <tr>
        <td>LPAUSE</td>
        <td>int</td>
        <td>The pause interval over which the text display engine
        will sleep in between each line of text that is
        displayed, in milliseconds.</td>
        <td>250 ms</td>
    </tr>
    <tr>
        <td>SPAUSE</td>
        <td>int</td>
        <td>The pause interval over which the text display engine
        will sleep in between each loop of full execution (if
        enabled, see LOOP parameter below) in milliseconds.</td>
        <td>500 ms</td>
    </tr>
    <tr>
        <td>LOOP</td>
        <td>int</td>
        <td>A non-zero value causes the text display to loop
        continuously, subject to whatever pause value is set for
        SPAUSE.</td>
        <td>1</td>
    </tr>
    <tr>
        <td>SCRIPT</td>
        <td>String</td>
        <td>The name of the script file containing the text to be
        displayed, relative to the codebase of the applet. The
        easiest thing to do is to place your script in the same
        directory as your applet class, and just use its name. <strong>Required</strong></td>
        <td>None</td>
    </tr>
    <tr>
        <td>LSPACE</td>
        <td>int</td>
        <td>The dimension used to space lines of text. It should
        generally be about 25% larger then the font size.</td>
        <td>15</td>
    </tr>
    <tr>
        <td>FONTSIZE</td>
        <td>int</td>
        <td>The font size, in pixels, used to display text.</td>
        <td>12</td>
    </tr>
    <tr>
        <td>CURSOR</td>
        <td>int</td>
        <td>The width, in pixels, of the simulated cursor.</td>
        <td>3</td>
    </tr>
    <tr>
        <td>INDENT</td>
        <td>int</td>
        <td>The indentation, in pixels, for each line of text.
        This will be relative to the INITX parameter (see below.)
        For example, if you use an INITX value of 5, and an
        INDENT value of 5, text lines will start 10 pixels left
        of the applets left edge.</td>
        <td>15</td>
    </tr>
    <tr>
        <td>INITX</td>
        <td>int</td>
        <td>The x-origin of your virtual terminal area, in
        pixels, measured from the left edge of the applet.</td>
        <td>0</td>
    </tr>
    <tr>
        <td>INITY</td>
        <td>int</td>
        <td>The y-origin of your virtual terminal area, in
        pixels, measured downward from the top edge of the
        applet.</td>
        <td>0</td>
    </tr>
    <tr>
        <td>BGIMAGE</td>
        <td>String</td>
        <td>The optional background image. If none is provided,
        the applet panel will paint itself the BGCOLOR value.The
        image file should be relative to the applet's codebase.The
        easiest way to ensure this is to simply place your image
        in the same directory as the java applet class file, and then
        just provide the filename for this parameter. Both GIF's
        and JPG's are supported.</td>
        <td>None.</td>
    </tr>
    <tr>
        <td>MAXY</td>
        <td>int</td>
        <td>The lowest point for text display, in pixels,
        measured downward from the top edge of the applet. If no
        MAXY value is provided, the java applet will display text to
        the bottom edge of the applet panel.</td>
        <td>None</td>
    </tr>
</table>
</center></div>

<h3>Writing a Script</h3>

<p>Writing a script for the java applet involves little more then
typing each line of text that you want displayed with a text
editor (such as Windows Notepad) and saving the file. You should
upload your script into the same directory as your applet class
file.</p>

<p>There are four &quot;tags&quot; that can be used to provide a
little control over your text display.</p>

<p>&lt;NEWLINE&gt; - causes the java applet to display a blank line
(skip a line.)</p>

<p>&lt;NEWPAGE&gt; - causes the java applet to display on a fresh
&quot;page&quot;, clearing old text, although this is also
handled automatically. Use &lt;NEWPAGE&gt; to force it if
desired.</p>

<p>&lt;PAUSE ###&gt; - causes the java applet to pause display for a
specified number of milliseconds. For example, &lt;PAUSE 1000&gt;
will result in a 1 second delay. A value of 0 will suspend the
applet, but clicking on it will restart it.</p>

<p>&lt;MORE&gt; - will display &quot;More...&quot; and suspend
the java applet, click to restart. This will also be handled
automatically, but you can force display of &quot;More...&quot;
with this tag.</p>

<p><em><strong>Sample Script </strong></em>- Here's the script
used in the demo:</p>

<pre>HollywoodText Demo
------------------
This java applet displays text the way
Hollywood movie computers do.
&lt;NEWLINE&gt;
&lt;PAUSE 1000&gt;
When you see &quot;More...&quot; click on
the java applet to continue.
That's all... it's trivial,
but a fun applet for a personal
web page :-)
&lt;NEWLINE&gt;
&lt;PAUSE 1000&gt;
Click on the java applet to run it
again.</pre>

<p>Note that the code does not automatically wrap long lines.
Compose your script so that it takes the width of your text
display into consideration.</p>
<hr>
       <center>
       <br>
       <a href="http://www.Free-Applets.com" target="_top">
       <img alt="[ CLICK HERE for free applets ]"
       src="free-applets.gif"
       width=110 height=34></a><br>
       <A HREF="http://www.Free-Applets.com" target="_top">www.Free-Applets.com</A>

       <br>Last updated:
			<SCRIPT LANGUAGE="JavaScript">
			<!--
			document.write(document.lastModified);
			//-->
			</SCRIPT>
       </CENTER>

</BODY>
</HTML>

⌨️ 快捷键说明

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