Applet Code

Here is an example that shows the applet HTML tag, applet parameters and alternate HTML for the Office Directory demo shown above. The applet code attribute specifies the Java applet to execute, in this case finditshow. The width and height attributes specify the area in pixels in the HTML document for the applet window. The param tag with its name and value attributes specify configuration options that are specific to the finditshow Java applet. These options enable you to configure your Java applet web page database. They are explained in detail in the software vendors documentation. The text that follows the last param attribute specifies alternate HTML to display to a user without a Java enable browser. In this example, a message indicating the user does not have a Java enabled browser and the img tag will show a gif containing a screen image of the Java applet.

<APPLET CODE=finditshow width=620 height=200>
<param name=allrecs         value=8>
<param name=btnfont         value=TimesRoman|bold|12|>
<param name=bgcolor         value=#FFFFFF>
<param name=cbcols          value=4>
<param name=cbname          value="Year 2000|Internet|Outsourcing|Data Warehousing|
Banking|Transporation|Telecommunications|All Locations|">
<param name=checkboxes      value=all>
<param name=delim           value="|">
<param name=delimdata       value=",">
<param name=email           value=show>
<param name=field1
value="Location|#cacaca|TimesRoman|bold|12|center|#FFFFFF|TimesRoman|plain|12|20|">
<param name=field2
value="Country|#cacaca|TimesRoman|bold|12|center|#FFFFFF|TimesRoman|plain|12|20|">
<param name=field3
value="Phone|#cacaca|TimesRoman|bold|12|center|#FFFFFF|TimesRoman|plain|12|20|">
<param name=field4
value="Email Recruiter|#FF0000|TimesRoman|bold|12|center|#FFFFFF|TimesRoman|plain|12|30|">
<param name=fgcolor         value=#000000>
<param name=format          value=1>
<param name=found           value=show>
<param name=inputfile       value=dmr.dat>
<param name=lblcolor        value=#cacaca>
<param name=lblfont         value=TimesRoman|bold|14|>
<param name=lsttext         value=Offices>
<param name=selcolor        value=#ff0000>
<param name=title1          value="Services|#cacaca|TimesRoman|bold|14|center|">
<param name=totalrecs       value=50>

You need a JAVA enabled browser to use this JAVA system, here is a screen
image of the system.
<img src="officedir.gif"></a>

</applet>
Previous

Up to => Home / Authoring / DB / WebPage

Guide Keywords Lexicon Site Map Top 100 Tutorials


Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers