How do you point to various images for various button states?
Onmouseover, etc.
How do you point to various images for various button states? Onmouseover, etc.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HTML
CSS
Note: The
:focusand:hoverpseudo classes are not supported on all IE versions (on buttons at least). You can use JavaScript to emulate. Check out the eventsblur()andfocus()(to emulate:focus) andonmouseover()andonmouseout()(to emulate:hover).Alternatively, if you need to support a very ancient browser (quite unlikely), you can use JavaScript, but is not recommended in this day and age when CSS provides this functionality.