This license ("License") contains rights and restrictions associated with use of the accompanying software. Read the License carefully before utilizing the software. By using the software you agree to be bound by the terms and conditions of this license.
You should be careful to check that your unzipping program has named the files correctly. Some DOS programs will name according to the old 8.3 format, rename .class files "*.cla".
The Gallery Example
The code which produces the above is:
<applet code=fire width=256 height=128> <param name=image value="images/fire.gif"> <param name=href value="http://www.spigots.com/spigots.htm"> </applet>
Paying for the Applet
There is NOTHING to pay. The applet is completely free. However, if you make a donation ($5 - $10?) to Ty Hafan, Children's Hospice of Wales, which is a charitable appeal formed to build, equip and run a Children's Hospice in Wales to provide care for terminally ill children, you can consider your applet well-and-truly registered. Click here for details on how to make a donation. They now have an excellent new OnLine donation page. In just a few minutes you can change a few old, crinkly, dirty little bank notes into a nice warm glow...
Using Fire in a web page (With FrontPage 98)
|1||.||Create a (temporary) directory for the files (e.g. c:\fire)|
|2||.||Unzip all of the files into the directory|
|3||.||Start FrontPage 98|
|4||.||Open the appropriate web|
|5||.||Change to the folder in the web that contains the page which will contain the fire applet|
|6||.||Choose "File/Import" from the menu|
|7||.||When the "Import" dialog appears, click the "Add File" button.|
|8||.||Change the "Open File" dialog to the fire directory (e.g. c:\fire)|
|9||.||Select all of the files in the directory (you can do this by clicking the first file, then holding down the "CTRL" key and clicking each of the other files in sequence)|
|10||.||Click the "Open" button to close the "Open File" dialog.|
|11||.||Click the "OK" button to start the import of the files.|
|12||.||The files should now appear in the contents of the FrontPage folder.|
|13||.||Double-click the page that you want to insert the fire applet in.|
|14||.||Once the page opens, move the cursor to the place on it where you want the applet to appear.|
|15||.||Choose "Insert/Image..." from the menu|
|16||.||When the "Image" dialog appears, change to the folder containing the file you want to burn. Click this file once and note down (on a piece of paper) the value which appears in the "URL" field.|
|17||.||Now click the "OK" button. The image will now be inserted into page. But it will not yet be rippling.|
|18||.||Right-click the image and choose "Image properties" from the menu.|
|19||.||When the "Image Properties" dialog appears, switch to the "Appearance" tab.|
|20||.||In the size section you should have values for the "Width" and "Height" of the image. Note these down on the same piece of paper that you noted the "URL" value on.|
|21||.||Click the "Cancel" button.|
|22||.||Delete the image you have just inserted. You should be able to do this by just clicking the "Delete" key.|
|23||.||Choose "Insert/Advanced/Java Applet" from the menu.|
|24||.||In "Applet Source" enter "fire"|
|25||.||In the section labelled "Applet Parameters" click on the "Add..." button.|
|26||.||Enter "image" in the "Name" field|
|27||.||Go to the "Value" field and enter the "URL" value that you previously wrote down on the piece of paper.|
|28||.||Click the "OK" button.|
|29||.||You should now be back in the "Java Applet Properties" dialog. In the "Size" section, click the mouse in the "Width" field.|
|30||.||Replace the current value with the "Width" value that you noted on the piece of paper.|
|31||.||Now click your mouse in the "Height" property.|
|32||.||Replace the current value with the "Height" value that you noted on the piece of paper.|
|33||.||Click the "OK" button. You should now have a large "J" on the page.|
|34||.||To see the applet running, click on the "Preview" tab at the bottom of the page.|
|35||.||You have set up fire to run with a single "image" parameter. You can add other parameters by amending the properties of the applet (by right-clicking the applet in the editor view and then choosing "Applet properties"). For a full list of the parameters that can be used, see below.|
Using Fire in a web page (HTML editors)
To include fire in a web page, you should copy the fire.class file into the same directory as the web page and then insert an <APPLET...> tag into the page, e.g.
<applet code="fire" width= height=> <param name="image" value="images/fire.gif"> <param name="href" value="http://www.spigots.com/spigots.htm"> </applet>
Each of the "PARAM" tags passes a value to the applet. The examples shown here are the "image" parameter and the "href" parameter. In general the "PARAM" tag has the following format:
<PARAM name="[PARAMETER NAME]" value="[PARAMETER VALUE]">
Note that in Communicator 4.5 you will need to insert the tags in one at a time. Do this by choosing "Insert/HTML Tag..." from the menu for the <applet...> tag, then each of the <param...> tags and so on. For a full list of the parameters that can be passed to fire, see below.
Parameters that can be passed to fire
The following parameters can be passed to the fire:
JPG or GIF file that you want to burn.
<applet code=fire width=256 height=128> <param name=image value="images/fire.gif"> </applet>
The URL to link to when the applet is clicked. By default this is http://www.demon.co.uk/davidg.
<applet code=fire width=256 height=128> <param name=image value="images/fire.gif"> <param name=href value="http://www.javasoft.com"> </applet>
This is the name of the frame you want any linked page to appear in.
<applet code=fire width=256 height=128> <param name=image value="images/fire.gif"> <param name=href value="http://www.microsoft.com"> <param name=target value="newframe"> </applet>
setImageValue changes the image that is currently being burnt. The variable x should the name of a JPG or GIF file accessible by the applet.
setTargetValue sets the target frame of the applet's "href" parameter.
setHRefValue sets the hyperlink destination for when the applet is clicked.
If the applet remains blank when it is run off the server and never shows the image, the chances are there are problems with the image. If the image is too large then it may not be able to create the animation in memory. On the other hand, it may be that the image is not accessible. Have you spelt the image filename correctly in the
Why won't the applet work off my hard disk?
Some web browsers have trouble opening applets straight from a hard disk. I have noticed this happen with Internet Explorer 3 and Netscape 4. Once you have loaded the class file and the web page onto your web site you should find it works OK.
Why does my web page say "Class Format Error"?
Class files are binary files, just like image files are. Binary files contain more information than text (also known as ASCII) files do. If you transfer class files as if they were ASCII files then they will lose this extra information and will become corrupted. How do you transfer class files as binary files? You should transfer them in the same way that you transfer image files.
Why does my web page say "Class Not Found"?
This is a very common problem. It may be because of one of the following:
Examples from the Web
|*||.||Rem Data Services: [Download from demon.co.uk]
Linking to my site
If you use this applet then it would be nice if you gave me a link by copying the image:
(this is the file "dglogo.gif" in the .zip archive) into the same directory as your web page and then pasting the following into your page.
<a href="http://www.demon.co.uk/davidg/spigots.htm" target="_top"> <img src="dglogo.gif" width=88 height=31 border=0></a>
It will put a little button on your page that will link through to my Java Spigots page.
It is only a request: feel free to omit it.
If you still have trouble getting the applet to work and you have tried all of the possible solutions listed above, then feel to contact me, remembering to include:
|1||.||A precise description of the problem (do you just get a grey rectangle, or an error message etc. etc.)|
|2||.||The URL of the page containing the applet (that's the actual page - not just the front page on your site)|
These two pieces of information will make it a lot easier for me to solve the problem. I cannot guarantee that I will be able to respond to all messages (there's only so many hours in the day...) but sending the URL of a page that doesn't work will greatly increase the chances of getting an answer.
Remember to keep a look out at my web site for new applets.
Created in Glorious Polyphonic HPL
Last updated: Tuesday 1 February 2000