A CSS Button Creation Class
Introduction
In an earlier article, creating CSS Buttons, I examined you to create graphical-appearing Buttons using nothing but HTML a nd CSS. While this approach be fairly simple to implement-just add a few style tags and a suitable the HREF and DIV tag-it is a bi T mundane to have to does for each and every button, especially since your need to have a unique set of style classes and IDs For each unique button. (If you are are thoroughly confused by this point, being sure you ' ve read the creating CSS Buttons article before to th is one ...) In this article we'll examine a small, but handy class to help automate the process of creating CSS buttons. Furthermore, when using a class we'll be creating and placing buttons much as you do would in a VB project. (For more information on creating and using classes in VBScript, being sure to read Mark Lidstone ' s excellent article:using Classes within vbscript!)
Determining the Class Properties
The Creating our CSS button creating class are to decide what properties makeup a CSS button. While there are literally no limit to the number of properties one could conceivably attributes to a button, for this articl E I am going to assume, this set of properties conveys the basic features one would like to have in a button:
Cssbutton Class Properties
Name uniquely identifies each button.
BackColor specifies the background color of the button.
BORDERCOLOR Specifies the color of the button ' s border.
The font the font to use for the button ' s label. Must is in the Format:style size font-name, such as:bold 12pt Arial.
FontColor the color of the font when the button is not selected.
The width of the button.
The text to display on the button.
URL The URL to take the "user to" when the click the button.
Mouseovercolor the "color" to "make" font when the user's mouse moves over the button.
This is only work for visitors using IE ...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.