Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
16.8 Server Side Image Maps
415
NAME
The
NAME
attribute identifies the textfield when the form is submitted.
SRC
SRC
designates the URL of the associated image.
ALIGN
The
ALIGN
attribute has the same options (
TOP
,
MIDDLE
,
BOTTOM
,
LEFT
,
RIGHT
) and default (
BOTTOM
) as the
ALIGN
attribute of the
IMG
element
and is used in the same way.
Listing 16.5 shows a simple example, where the form's
ACTION
specifies
the
EchoServer
developed in Section 16.12. Figures 16 21 and 16 22 show
the results before and after the image is clicked.
Listing 16.5 ImageMap.html
The IMAGE Input Control
The IMAGE Input Control
Which island is Java? Click and see if you are correct.
Of course, image maps can be implemented in
Java as well. : )
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved