📄 sample.html
字号:
<HTML>
<HEAD>
<TITLE>Free Dragon-like Scrolling Text Applet</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
<CENTER>
<TABLE width=65%>
<TR>
<TD>
<CENTER><H1><FONT COLOR="#FF0000">Dragon-like Text Scroller</FONT></H1>
<HR>
<applet code="Dragon.class" width="400" height="100">
<param name=maxText value="3">
<param name=text1 value="The Java Boutique">
<param name=text2 value="Dragon-like Text Scroller">
<param name=text3 value="Dragon is an imaginary creature.">
<param name=speed value="2">
<param name=fontname value="TimesRoman">
<param name=fontstyle value="BOLD_ITALIC">
<param name=fontsize value="32">
<param name=fontcolor value="white">
<param name=rgb value="000000">
<param name=background value="setcolor">
<param name=bgrgb value="c0c0c0">
</applet>
</Center>
</TD>
</TR>
<TR>
<TD>
<HR>
<CENTER>
<BR>
<P><FONT COLOR="#3333FF"><FONT SIZE=+2>Source and class files:</FONT></FONT><BR><BR>
<A HREF="Dragon.java">Dragon.java</A>
<BR>
<A HREF="Dragon.zip">Dragon.zip</A>
</CENTER>
<BR>
This applet is freeware. To use the applet on your site, save the file Dragon.zip by right clicking on the link
and use the 'SAVE LINK AS' option, then UNZIP the file and put the class file in the same directory as your HTML file.
A sample HTML file is included in the zip file. To customize the applet for your site, follow the procedures below.
<HR>
</TD>
</TR>
<TR>
<TD BGCOLOR="#FFEBCD">
<CENTER><FONT COLOR="#FF0000"><FONT SIZE=+2>HTML Example</FONT></FONT></CENTER>
<XMP>
<applet code="Dragon.class" width="400" height="100">
<param name=maxText value="3">
<param name=text1 value="The Java Boutique">
<param name=text2 value="Dragon-like Text Scroller">
<param name=text3 value="Dragon is an imaginary creature.">
<param name=speed value="2">
<param name=fontname value="TimesRoman">
<param name=fontstyle value="BOLD_ITALIC">
<param name=fontsize value="32">
<param name=fontcolor value="white">
<param name=rgb value="000000">
<param name=background value="setcolor">
<param name=bgrgb value="c0c0c0">
</applet>
</XMP>
</TD>
</TR>
<TR>
<TD>
</Center>
<HR WIDTH="100%">
<CENTER> <FONT COLOR="#FF0000"><FONT SIZE=+2>Applet parameters</FONT></FONT></CENTER>
<P><B><FONT COLOR="#000000"><FONT SIZE=+1>Required global parameters:</FONT></FONT></B>
<UL><B>width and height</B>
<BR>Change the width and height to indicate the size of the applet.
<P><B>maxText</B>
<BR>This is the number of strings to display.
<P><B>text1</B>
<BR>This is the first string to display.
<P><B>text2</B>
<BR>This is the second string to display.
<P><B>textn</B>
<BR>This is the n'th string to display.(n = 3 in this sample case)
<P><B>speed</B>
<BR>This value controls the scrolling speed of strings to display, the larger the number the fasterit scrolls.
<P><B>fontname</B>
<BR>This is the font name for all strings to display. Use one of the following font names below:
<PRE>Courier
Dialog
Helvetica
TimesRoman
</PRE>
<P><B>fontstyle</B>
<BR>This is the font style for all strings to display. Use one of the following font styles below:
<PRE>PLAIN
BOLD
ITALIC
PLAIN_ITALIC
BOLD_ITALIC
</PRE>
<P><B>fontsize</B>
<BR>This is the font size for all strings to display. The value must be an integer.
<P><B>fontcolor</B>
<BR>This is the font color of the strings to display. To use a pre-selected font color, use one of the following colors below:
<PRE>black
blue
cyan
darkGray
gray
green
lightGray
magenta
orange
pink
red
white
yellow
</PRE>
<PRE>random ----- if this value is selected, each of the strings will be ranomly changed in color.
setcolor ----- if this value is selected, you can use any color by setting the following three sets of parameters.</PRE>
<P><B>rbg</B>
<BR>This is the hexadecimal RGB color code of the font color to display. The value must be a RGB code, ranging from "000000" (black in color) to "ffffff" (white in color).</PRE>
<P><FONT COLOR="#000000">For example, to use the 'white'-colored strings,
code the fontcolor parameters as follows:</FONT>
<BR><STRONG><FONT COLOR="#000000"><param name=<B>fontcolor</B> value="setcolor"></FONT></STRONG>
<BR><STRONG><FONT COLOR="#000000"><param name=<B>rgb</B> value="ffffff"></FONT></STRONG>
<P><B>background</B>
<BR>This is the background color of the applet. To use a pre-selected colored background, use one of the
following colors below:
<PRE>black
blue
cyan
darkGray
gray
green
lightGray
magenta
orange
pink
red
white
yellow
</PRE>
<PRE>setcolor ----- if this value is selected, you can use any color by setting the following three sets of parameters.</PRE>
<P><B>bgrgb</B>
<BR>This is the hexadecimal RGB color code of the background color to display. The value must be a RGB code, ranging from "000000" (black in color) to "ffffff" (white in color).</PRE>
<P><FONT COLOR="#000000">For example, to use the 'silver'-colored background,
code the background parameters as follows:</FONT>
<BR><STRONG><FONT COLOR="#000000"><param name=<B>background</B> value="setcolor"></FONT></STRONG>
<BR><STRONG><FONT COLOR="#000000"><param name=<B>bgrgb</B> value="c0c0c0"></FONT></STRONG>
<P>
</TD>
</TR>
<TR>
<TD>
<HR>
<CENTER><FONT COLOR="#FF0000"><FONT SIZE=+2>Easy Setup</FONT></FONT></CENTER>
<BR>
The easiest way to set up the applet on your site is to start with the applet code in the sample HTML
file found in Dragon.zip. Use notepad and cut and paste the applet parameters from the sample
HTML file into your HTML file. Then try it out, if it works, then customize it for your site. Please note,
after you change the HTML file you must hit 'reload' on your browser to view the changes (sometimes you must
close the browser and reopen it to see the changes).
<HR>
</TD>
</TR>
<TR>
<TD>
<BR>
<CENTER><FONT COLOR="#FF0000"><FONT SIZE=+2>Author</FONT></FONT></CENTER>
<BR>
<CENTER><A HREF="mailto:sigemitu@mxa.mesh.ne.jp">Email me at sigemitu@mxa.mesh.ne.jp</A></CENTER>
<HR>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -