Документация
HTML CSS PHP PERL другое
Using a Graphic Submit Button
 
Previous Page
Table of Contents
Next Page

Using a Graphic Submit Button

apply for the reset button unless you add JavaScript. But in terms of HTML itself, you can use a custom button for submit if you so desire.

For Example 5-12, I created a graphic submit button for my form and inserted it into the form using the input element with additional attributes for the image.

Example 5-12. Using a graphical submit button
<form method="get" action="http://www.myserver.com/cgi-bin/mailscript/">

<input type="image" src="submit-button.gif" width="75" height="25" alt="submit!"
 value="submit" />

</form>

You'll notice that the markup includes a value for the type attribute, image. Then you provide the image source for the button, its width and height, its value, and alternative text. Remember, it's an image, so you'll want to be sure you have that alternative text in there.

Figure 5-14

Figure 5-14. Implementing a graphic submit button.


QUANTUM LEAP

in terms of implementation, they aren't exactly pretty. That will be repaired as soon as you begin styling form elements later in this book.


    Previous Page
    Table of Contents
    Next Page


     Приглашаем посетить сайты 
    Мода Чехов Крылов Автомобили Успенский Жуковский Футбол Кулинария Грибы CSS