Image_and_Cursor



Image_and_Cursor

The Simplest Use

[pic]

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.

[pic]

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 applet’s 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 User’s Manual. The user’s manual includes information on additional parameters providing control over the applet’s 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 coordinate information 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 User’s Manual.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download