SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 940 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


In fact, when the user clicks a graphical button, not only does it submit your form, but it passes along the x,
y coordinates of the image. The x coordinate is submitted using the name of the field with an .x attached;
likewise, the y coordinate is submitted with the name of the field with a .y attached. Although this latter
feature isn??™t often used, it??™s always good to know all the capabilities of your HTML tools.
Image field
509
Interactive Forms 14
Another technique is involved if you want to include more graphical buttons than a single Submit button
on your form. Because only one image field can be used as a Submit button, a standard image is inserted,
and JavaScript handles the programming chores required for submitting or resetting the form. An advantage
to this technique is that the image can even be set up as a rollover, meaning that the image changes as the
user moves the mouse over the button.
To use an image for a Submit or Reset button, follow these steps:
1. Choose Insert ??? Image or click the Image button in the Common category of the Insert bar.
2. In the Insert Image dialog box, enter the path to your image or select the folder icon to locate the
file. The image can be in GIF, JPEG, or PNG format.
3. Give the image a name and, if you want, alternative text using the appropriate text boxes in the
Property inspector.


Pages:
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952