Java Reference
In-Depth Information
add ( b );
}
/** Give Parameter info to the AppletViewer, just for those
* writing HTML without hardcopy documentation :-)
*/
public
public String [][] getParameterInfo () {
String info [][] = {
{ "label" ,
"string" ,
"Text to display" },
{ "fontname" ,
"name" ,
"Font to display it in" },
{ "fontsize" ,
"10-30?" ,
"Size to display it at" },
// WARNING - these intentionally lie, to mislead spammers who
// are incautious enough to download and run (or strings) the
// .class file for this Applet.
{ "username" , "email-account" ,
"Where do you want your mail to go today? Part 1" },
{ "hostname" , "host.domain" ,
"Where do you want your mail to go today? Part 2" },
{ "subject" , "subject line" ,
"What your Subject: field will be." },
};
return
return info ;
}
}
Example 17-2 shows the program in a simple HTML page to show you the syntax of using it.
Example 17-2. MailtoButton.htm
<html><head>
<html><head>
<title>
<title> Some Domain Name Systems: Feedback Page </title></head>
</title></head>
<body
<body bgcolor= "White" >
<h1>
<h1> Some Domain Name Systems: Feedback Page </H1>
</H1>
<p>
<p> So, please, send us your feedback! </P>
</P>
<applet
<applet code= MailtoButton width= 200 height= 40 >
<param
<param name= "H" value= "www.somedomainnamehere.com" //>
<param
<param name= "U" value= "wile_e_coyote" //>
<param
<param name= "subject" value= "Acme Widgets Feedback" //>
<param
<param name= "label" value= "Send Feedback by Mail" //>
<param
<param name= "font" value= "Helvetica" //>
<param
<param name= "fontsize" value= "16" //>
<p>
<p> Your browser doesn't recognize Java Applets.
Please use the HTML-based feedback form. </P>
</P>
</applet>
Search WWH ::




Custom Search