I have received mucho e-mail regarding the animBtn.class Applet . Below are answers to the most numerous inquiries. Hopefully the following will assist you in modifying this applet to your specifications. If these do not cover your problem, please feel free to e-mail me and I will respond as quickly as possible.
Also, PLEASE UPLOAD TO YOUR SERVER and include your test URL so I can look at all of the elements and see if everything is OK.
  Hey dude, do I need permission to use animbtn?

Lest I be mistaken for being a Java Guru, David Griffiths wrote the origonal. I did some modifications to make it work for mouseOvers... It is basically in the public domain, so go for it..

  Does this mouseOver work in MS Explorer?

Being Java it works the same on Version3+ MSIE & NetScape..

  What do I need to implement it?

You need 3 elements
1st: an animation "strip": gif or jpg.
(Your 2 "in"-"out" images combined into one image)
2nd: The java class file: animBtn.class
Download the animBtn.class file . . . This needs to be unzipped,
placed or uploaded to the same directory as your HTML file.
Also, it seems to be case sensitive so make sure it is uploaded
exactly as above.
3rd: The applet itself inserted in the proper place in the HTML doc.

  What is the "image strip"? How do I create it?

The quickest program to set up your "strips" I have found is PaintShop Pro. (Shareware). Get it here: http://www.jasc.com/pspdl.html

If you have a 10x10 gif/jpg,  your strip will be 20x10, or twice as wide. Insert "off" first, and "on" second. (or You can add as many images as you want to create a full animation - similar to creating an animated gif) The applet "reads" the strip in a similar manner...


  How do I modify the applet?

<applet code="animBtn" width=90 height=52>
<param name="images" value="javabut2.jpg">
<param name="step1" value="1"> 1st image
<param name="step2" value="2"> Number of images in animation
<param name="step3" value="2"> Image on click
<param name="url" value="whatever.html">
<param name="target" value="_top">
<param name="sound" value="/sound/drip.au">
Ah ha! - no Java!!!! I suggest that you get a Java Enabled Browser!
</applet>

You will need to change the width & height to match your image.. (Line 1)
and the Name of your image "strip". (Line 2)
If you need one, the URL value.. (Line 6)
Frame Target -- default: _top... (Line 7)
& if you want sound, add it! Otherwise remove. (Line 8)

MicroSoft FrontPage has a tendency to add an "align=baseline", or
something similar on the first line after <applet code="animBtn"...
Remove this or the ap may not work in Netscape! Always check the applet
code after using any WYSIWYG editor, etc.

  One final note! My tests don't work with Explorer.

On my machine IE3 returns errors when testing "local" java apps, so you might have to upload to your server and test whilst online. I can test any applet with Netscape by dragging or typing the local file, so I suggest you use this for development...!!

 

 
BACK TO JAVA DEMO
If you arrived here via a search engine please click here to open the full site!

Design and Graphics:
© 1995-1997 Joel R. Cheves aka:The WebWeaver
The author is a member of

 >
The HTML Writers Guild
 >
Obligatory Disclaimer: The above does not imply endorsement by the
HTML Writers Guild
last revision 21 October 1997