|
|
|
|
|
Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Contact |
||
|
Snow
Effects Applet AnfyJava's Snow Effects Applet code is a bit more complicated with more parameters to deal with than David Griffith's Snow Applet. Here, I've used the same image file as I did with David Griffith's version for comparison. The image comes from freefoto.com. I got the applet files from 1Archive.com. You can also go to Anfy's website to pick up this applet plus a whole bunch of their other applets. If you use any of the applets in their downloads, you are required to link back to them. You can purchase the applet package, too, for a low price. To the right is the adjusted code for Anfy Java's Snow Effects Applet which I entered in the Insert HTML element. Remember, viewing the page source will only get you a code for the demo on this page which will not work as-is with SiteBuilder. |
<applet archive="ansnow.jar" code="ansnow.class"
codebase="files/" width="200" height="300"> The four tags beginning with "reg..." have to do with registration of the applet and linkages for it. If you haven't registered it, you can leave these values as-is. I don't have a registration code because I obtained the file from 1Archive.com, so that's how the demo is. The "flakes1-4" values are the number of far, middle, near, and foreground big flakes, respectively. You can leave the numbers as-is or change it, playing around with the values until you're satisfied with the look. The "windmax" value is the maximum speed of the wind from 1 to 3. I don't know if that's in MPH, KPH, or knots. I chose to leave it as-is. The "windvariation" value is the frequency that the wind varies from 1 to 10. I've left the value as-is, but you can play around with this. The "backimage" value is the image you want the snow to fall on. It's best to use one with snow already in it. You can also use another image on top of the back image. That's the "overimg" value. I'm not using an over image, so I've left the parameters as-is. The other values are explained in detail in the ansnow.txt file enclosed in the zip you'll download to get the .class and .jar files. Please read it. One you've gotten the code adjusted to your satisfaction, close the element and resize it to the dimensions of your image. Then save and publish your page. Make sure everything works correctly when you preview it. Make any other necessary adjustments. Be sure you upload your image, the two.class files, and the .jar file to your Files Manager. Otherwise, you won't have a working applet - all you'll see is a gray box. |
|
| Formerly hosted at www.geocities.com/ramblingtutor/ |
Home - Tips & Tutorials - JavaScript Demos - Java Demos - Resources - Contact Webpage graphics by Arride Graphics
|
|