Unofficial Tips and Tutorials for Homestead SiteBuilder� Users  
Snow Drift Applet
by Ion Chen/ 6sense.com
Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Search - Contact

<applet archive="snowdrift.jar" code="snowdrift.class" codebase="files/" width=300 height=225>
<param name="wind" value="2">
<param name="background" value="files/b2landscapes060_300x225.jpg">
<param name="fgmax" value="1">
<param name="fgimage1" value="files/rtgreet.gif">
<param name="fgxpos1" value="180">
<param name="fgypos1" value="120">
<param name="maintext" value="Registered">
<param name="mainlink" value="http://www.6sense.com">
<param name="id_key" value="6s890667530995822119">
</applet>

The Snow Drift Applet is fully customizable. There is a code generator on the web site that allows you to have a background image, a foreground image and text as well as setting the snow fall parameters or omit any of those. (Note: the code generator may not work with Firefox so use IE instead.) On a separate page you can download the applet files. You need the files and the applet code in order for this applet to work, just as with any of the other applets.

Unfortunately, though, you cannot use this applet with Sitebuilder. You must use another web page editor and link to this page from your Sitebuilder pages using the full URL of http://yoursite.homestead.com/files/snowdriftpage.html. Consequently, this applet cannot be used on your main index page which absolutely must be built with Sitebuilder.

The photo I'm using on this demo comes from ImageAfter.com, a free stock photo-sharing web site. The photo is the background image in the applet code. The foreground image is actually the text gif with the transparent background that I made in Paint Shop Pro. You can omit the foreground image by excluding it when you custom-generate your code.

The applet code at the left is the customized one I'm using here with additions to make it workable with Sitebuilder. Your code can be complicated as that on the Parameters page sample or simple as a few lines with just a background image and the snow falling. To find out what all the parameters mean, just click on the Parameters link on any of the Snow Drift applet pages. If the Homestead additions do not work as is, use the full URL for your web site instead.

  • Instead of codebase="files/" on the first line, use codebase="http://yoursite.homestead.com/files/"
  • Instead of value="files/bg.jpg" in the background param, use value="http://yoursite.homestead.com/files/bg.jpg"
  • Instead of value="files/image.gif" in the fgimage1 param, use value="http://yoursite.homestead.com/files/image.gif"

This is true whether your generated code is as long as this one or shorter.

Be sure to upload all of the files to your Files Directory: the .jar file and all images you use. If you have any problems with this applet, contact me and I'll try to help. Sometimes having lots of options can be a mind-boggling task. You can also contact Ion Chen for general help.

Please click this window close to return to the Applets Index.

Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Search - Contact
Webpage graphics by Arride Graphics

Copyright � 2000-2006 The Rambling Tutor and JanetS  All Rights Reserved
All other copyrights belong to their respective owners as noted.

Hosted by www.Geocities.ws

1