Ford & Mason Ltd
HOME
ABOUT
CONTACT
RESOURCES
ADVERTISING



donations support the development of
cronolog.org
and
refcards.com

next up previous contents index
Next: Limitations of forms Up: Defining fields Previous: Submit buttons


Image buttons

Image buttons combine the functionality of submit buttons and image maps (which are described in Chapter gif). Here is the example from Figure gif:

  <INPUT NAME="image" TYPE="image" 
         SRC="images/image-button.gif" ALIGN="top">

An IMAGE type INPUT element defines an image which will cause all the data so far entered to be submitted when the user clicks on it. At the same time the coordinates of the point on the image where the user clicked are sent as extra data.

The URL of the image file is specified with the SRC attribute and the ALIGN attribute specifies whether the top, middle or bottom of the image is aligned with other text on the line. By default the bottom of the image is aligned with the text. It has been decided that image type input fields will be subsumed into the submit field in a future version of HTML.


[ITCP]Spinning the Web by Andrew Ford
© 1995 International Thomson Publishing
© 2002 Andrew Ford and Ford & Mason Ltd
Note: this HTML document was generated in December 1994 directly from the LaTeX source files using LaTeX2HTML. It was formatted into our standard page layout using the Template Toolkit. The document is mainly of historical interest as obviously many of the sites mentioned have long since disappeared.

 
Copyright © 1996-2002 Ford & Mason Ltd