|
|
|
||||||||||||||||||||
|
Odds and Ends
|
This page documents a simple Java applet I wrote to allow me to put my email address on various web pages and not get inundated with junk / spam mail. EmailAddrApplet displays an address in a clickable button. If visitor
clicks on the button he sees new mail window with the address filled in
- think of it as a substitute for the mailto: tag, where in order to get
a clickable link you include html such as; The key to avoiding putting yourself on tons of totally worthless spam lists seems to be to not put an easily recognised email address within any sort of html. Thus, the Email address is formatted from two parameters - NAME and DOMAIN. These simply correspond to the portion of email address either side of the '@' sign. This should be sufficient to avoid being picked up by spam trawlers. At some point I'll likely add some sort of encryption code. In order to improve the way the applet appears within a web page one or more labels can be specified above, below, left, & right. Font, colours etc are fully customisable. The applet works this works in the same way as the HTML MAILTO tag in an href. The fundamental difference being that no email address appears in html. The applet's JAR file is completely free. You can download copy it, distribute anything you like provided you give me credit by including my name and website URL on any reference to it. Sample codeHere is the html used to create the applet shown above. <applet archive="EmailAddr.jar" code="EmailAddrApplet.class" width="400" height="100"> <param name="BGCOLOUR" value="#ffffdd"> <param name="BUTTONBGCOLOUR" value="#ff0000"> <param name="BUTTONFGCOLOUR" value="#00ff00"> <param name="BUTTONFONT" value="serif,20,ITALIC"> <param name="LABELFONT" value="serif,14,PLAIN"> <param name="LEFTLABEL" value="Left Label"> <param name="RIGHTLABEL" value="Right Label"> <param name="TOPLABEL" value="Top Label"> <param name="BOTTOMLABEL" value="Bottom Label"> <param name="NAME" value="sinto"> <param name="DOMAIN" value="doggyworld.com"> </applet> ParametersThe applet supports the following parameters via PARAM / VALUE pairs.
Font specification Font are specified with a comma separated string in the following format;
Colours All colour parameters take either the standard HTML hexadecimal representation
of a colour, or one of the (few) Java built-ins. These are: DownloadDownload the the applet's jar file here
|
||||||||||||||||||||
|
|||||||||||||||||||||