ࡱ > F H C D E Y
bjbjWW = = ] @ @ @ @ @ @ @ @ $ o c @ @ @ @ @ @ @ @ @ T @ @ @
: x , @ 4 @DG
Image_and_Cursor
The Simplest Use
The html code below is all that is needed to include a live image like the one above in an html page. You can change the image by changing just the seven shaded items.
In addition to including this code in your html page, you also need to place the image file (in this example AF-MAP.JPG) and the file Image_and_Cursor.jar in the same directory (or folder) as the html page.
Notice that the width and height of the applet each appear twice, once in the applet tag and once in the first two parameters:
The next three parameters specify the file name, width, and height of the image to be used in the applet. The image file must be placed in the same directory (or folder) as the html page.
The next parameter display_placement provides some control over the applets layout. It has two possible values:
1 the display showing the x-and y-coordinates of the cross hairs is placed as shown in the picture on page 1, to the right of the image.
0 the display showing the x- and y-coordinates of the cross hairs is placed below the image.
The applet width and applet height parameters must be large enough to provide room for the display. How much room is required depends on the placement of the display and on other parameters that are discussed in the Image_and_Cursor users manual. The users manual includes information on additional parameters providing control over the applets appearance and functionality.
The final parameter specifies what information is displayed. It has three possible values:
0 display only the x- and y-coordinates of the cross hairs.
1 display the information above and three buttons enabling the user to mark points on the image, display the marked points in a format suitable for copying to a spreadsheet or computer algebra system, and clear the marked points.
2 display the x-and y-coordinates of the cross hairs and two buttons enabling the user to mark points on the image and to clear the marked points.
This document discusses only the most basic features of Image_and_Cursor. For further information on this applet see the Image_and_Cursor users manual.
! # $ B L \ p + C 3 b =
M
#
]
m
OJ QJ 5OJ QJ j4 5OJ QJ U j U5 " # % & ) * + W B C n G H 2 $
&