Pictreplace applet
This applet allows to show the image only when it's loaded, if the image cannot be loaded (for example if it doesn't exsists) then the applet replaces the rectangle with the defined background color.
Example
Copy the "Pictreplace.class" file to your WEB directory (the images should be at the same directory!). Here is the eample of html that must be added:
<applet code="Pictreplace" codebase="http://www.mysite.com/pictures_directory/" width="300" height="301">
<param name="author" value="Konstantinova,lunya@hotmail.com">
<param name="img" value="picture.jpg">
<param name="color" value="black">
<param name="width" value="300">
<param name="heigth" value="301">Sorry, your browser doesn't support Java
</applet>
The "codebase" is the directory where the "Pictreplace.class" was downloaded.
Parameter name | Values/Defaults | Description |
author | Konstantinova,lunya@hotmail.com | You must set this parameter to show me as the author, if you don't set it then the word "Lunya" will appear on the images |
img | *.GIF or *.JPG image name | The name of the image that should be downloaded (the directory of the image must be same with the applet directory) |
color | white,green,yellow,blue,navy,olive,magenta,lime,orange,red cyan,gray,silver,pink,black,gold (default is "black") |
The background color that will be shown if the image can not be loaded |
width | integer (default 100) | Image width (can differ from the applet width) |
height | integer (default 100) | Image height (can differ from the applet height) |
Please place one of these buttons on your site and link it to http://welcome.to/tanya .
---------------
Tatiana Konstantinova , 2000 e-mail: lunya@hotmail.com