You can create a single web page for the applet or you can embed the applet
tag in an existing web page. Following is an example of an applet tag:
<applet code=MyDomainSearch.class width=300 height=200>
</applet>
The width and height values represent the values (in pixels) of the width and
height of the applet. You can customize the applet by specifying other parameters:
index - the name of the HTML file where the
applet will start the search;
default: "index.html".
param - an array of numbers and strings separated by comma (CAUTION: also ending with a comma); default value: "255,255,255,Search,Stop,Enter keyword,".
The first three numbers represent the color of the background of the applet;
each number is between 0 and 255 and represent the red, blue and green
components of the color.
The first string represents the label of the applet's button before the
beginning of the search, the second string is the same label after the search
has started and the last string represents the initial label at the bottom of the
applet.
np - what should the applet display if no pages are found; default: "No pages found".
op - what should the applet display if only one page is found matching the search criteria; default: "One page found.
Double click on the link.".
mp - if several pages are found, the applet displays the number of pages and this string; default: "pages found.
Double click on a link."
Here is an example of an applet tag with the complete list of parameters:
<applet code=MyDomainSearch.class width=300 height=200>
<param name=index value="index.html">
<param name=param value="Search,Stop,Enter keyword,">
<param name=np value="No pages found.">
<param name=op value="One page found. Double click on the link.">
<param name=mp value="pages found. Double click on a link.">
</applet>
The installation is as simple as uploading the class file and the html page
containing the applet tag to your web server.
If you would like more information about this applet please send your
questions at mdsa@lycos.co.uk.
|