Example

Scratch the shape

HTML applet code

<applet
    code=grattmoi.class
    id=grattmoi
    width=130
    height=170>
    <param name="background" value="./pacman.gif">
    <param name="foreground" value="./bkgrn1.gif">
    <param name="URL" value="http://www.arcadevillage.com"
    <param name="border" value="10">
</applet>

Terms of use

Scratch is a freeWare for non commercial sites.
For professional / commercial use, you need a "professional registration". With this registration, you can use CCalendar with no reference to me and have the complete set of java code.
For more information about "Professional registration" : write me.

Scratch parameters

backgroundStringUrl of the image to discover
foregroundStringForeground image
URLStringURL showed when the user discover the background image
borderIntegerBorder where the user is not obligated to scratch
pourcentIntegerPercent of the image to discover to see the URL ( default = 80 )
targetStringTarget where the URL to show appear. Usefull whith the frames
usoundStringURL of the sound file ( AU format ) to play when the user scratch
phIntegerPaint height. The default is 10 pixels
pwIntegerPaint width. The default is 20 pixels

Historic

July 2002
Add two parameters to define the paint with and height.

October 2000
Add a 'target' parameter. Usefull when you use frames
Add 'usound' parameter. URL to play when the user scratch
Download all files needed