A great way to add animated JPEGs to your web pages!
Permission granted to use this applet on any website. We ask, but do not require, that you provide a link to this page if you use the applet.
Here is an example of JpegAnim in action. Want to animate JPEGs (high quality photographic images) on your own site? Scroll down for instructions!
INSTALLATION INSTRUCTIONS
These instructions assume you are using Netscape or Internet Explorer.
Step One: Download the file JpegAnim.class
by right-clicking on this link and
selecting "Save Link As...". It is very important that you
keep the same name for the file! Otherwise it will not work.
Macintosh users: you can display the same menu by holding
the mouse button down over the link for about a second.
Step Two: put the file JpegAnim.class
on your own web server.
Step Three: to insert the applet in your web page, add the HTML code shown below.
Step Four:Change the image file
names and the delays to suit your needs. Delays are in
milliseconds, so 1000 is a full second's delay. The first
image is set up by the <param> tag with its
name attribute set to image1
and its value attribute set to the filename
for the first image; the filename must be a relative URL
on the same web server, such as the name of an image file
in the same directory with the web page. The delay after the
first image is set by the <param> tag with its
name attribute set to delay1
and its value attribute set to the delay
in milliseconds.
Step Five:Decide how many times the
animation should "cycle" (repeat itself). The
<param> tag with its
name attribute set to cycles
and its value attribute set to the number
of cycles is used to control this. If you want
the animation to cycle forever, leave this tag out completely.
Step Six: If JpegAnim.class is not kept
in the same directory on your web server, change the URL for the
code attribute of the applet tag shown below.
Step Seven: using your web browser or a graphics
program, check the size of your images. Your images should all
be the same size. If they are not, scale them with a good graphics
program in advance, to ensure good results. Be sure to enter that
size for the width and height attributes
of the <applet> tag, below.
That's it! If you have followed the above steps correctly, you will be able to display animated JPEGs on your website.
<applet code="JpegAnim.class" width=149 height=134> <param name="image1" value="tree1.jpg"> <param name="delay1" value="1000"> <param name="image2" value="tree2.jpg"> <param name="delay2" value="1000"> <param name="image3" value="tree3.jpg"> <param name="delay3" value="1000"> <param name="image4" value="tree4.jpg"> <param name="delay4" value="1000"> <param name="cycles" value="10"> <!-- This text is shown to people who do not have Java --> Sorry, your web browser does not support Java applets, or you have turned them off. Try Netscape 3.0 or better, or MSIE 3.0 or better. </applet>
Java Source Code
Boutell.Com, Inc.
Follow us on Twitter | Contact Us
Copyright 1994-2012 Boutell.Com, Inc. All Rights Reserved.
