Panorama Applet Version 1.x

© 1999 , RJHM van den Bergh \ Comweb , All Rights Reserved.
rvdb@comweb.nl(former rvdb@nedernet.nl)
or support@comweb.nl
http://alpha.comweb.nl


DISCLAIMER: THE USE OF THIS APPLET IS AT YOUR OWN RISK !


Description:
This applet scrolls a picture horizontally.
The movement can also be controlled by a mouse drag.
The applet is ideal to view a panoramic picture.

File descriptions:
Panorama.class = the applet program.
cruzbay.gif = panoramic picture.
Pan1ins.htm = this instruction file
Panora1.htm = demo html page
Note:
This Demo will not run from your local hard disk if you use Netscape 4+ and W95/98 due to a browser bug !
It will run correctly if uploaded to the internet.

How to use:
Add the applet tags to your html page.
Adjust the parameter tags.
Adjust the height and width of the applet.
Upload your panoramic picture.
Upload your html file.
Upload the Panorama.class file.
Note:
You must upload pictures and class files as binary files otherwise they get corrupted !
Note:
You must place all files in the same directory or use the codebase attribute (not advised for beginners).

The applet tags:
<APPLET CODE="Panorama.class" WIDTH="218" HEIGHT="96">
This is the first applet tag.
Width and height should be obvious.
The code attribute only tells the browser the applet file.
Note:
You can't set a path with the code attribute !!
The files are expected to be all in the same directory !

<PARAM NAME="picture" VALUE="cruzbay.gif">
This is the name of your picture file.

<PARAM NAME="delay" VALUE="50">
This tag is used to slow down the scrolling.
Actually its a waiting time in Milliseconds.
When this tag is completely omitted the value will be 50.

<PARAM NAME="x_add" VALUE="-1">
This determines how many pixels the picture is moved each program cycle.
With a negative value it moves left.
When this tag is completely omitted the value will be -1.

<PARAM NAME="bounce" VALUE="false">
On request this tag was added.
When making a panoramic picture a special camera is useful.
Many digital photo cameras are capable of producing such image.
But many people don't have the equipment to make a full 360 degrees picture.
This tag lets the picture bounce when the end of the picture has been reached.
When this tag is completely omitted the value will be false.

<PARAM NAME="size_vertical" VALUE="false">
Also added on request.
Someone did had many panoramic pictures of different height.
Its possible to move the picture up and down using a mouse drag.
But that wasn't the solution for this person.
He wanted all to show.
This tag resamples the height of the picture to the applet size so all is shown.
When this tag is completely omitted the value will be false.

<PARAM NAME="load_string" VALUE="Un petit moment svp.">
Added on request a loading message.
Also added on request the option to change the text.
For example if you don't want an English phrase.

</APPLET>
This simply is the applet ending tag.


UPDATES :
http://www.comweb.nl/java/panora1/panoram.zip

BUGS:
We are very interested in your bug reports.
Its practically impossible to test the applet on all browsers versions and operating systems.
SO IF YOU FIND A BUG PLEASE REPORT IT.
If you can please describe the bug as detailed as possible.
Browser version , operating system and or content of the Java console can be useful.
support@comweb.nl

Bug fixes:


RJHM van den Bergh
http://www.nedernet.nl/~rvdb (old homepage) or http://www.comweb.nl
All rights Reserved.