HTML BUTTONS

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

HTML BUTTONS

Post by Parody »

I would like to create a link in the form of a HTML button, the ones that can be coded in html without the use of images, the default ones. I can't seem to find a clear explanation of them.

Could someone please post a sample code of one please?

Thanks :D
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Code: Select all

<input type=&quote;submit&quote; name=&quote;Submit&quote; value=&quote;Submit&quote;>
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

What I mean is, something like the login button on this page:
http://themafianetwork.net/(5nen0jv3opx ... login.aspx

The code for it is:

Code: Select all

<P align=&quote;center&quote;><INPUT class=&quote;NormalButton&quote; id=&quote;btnsubmit&quote; style=&quote;WIDTH: 88px; HEIGHT: 20px&quote; type=&quote;submit&quote;
							value=&quote;Login Now!&quote;></P>
But, this creates a normal button, like the code for the submit button that was posted.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

I worked it out. It is a css file. But I don't really want to use css files, can I just specify a style in HTML

BTW, this is the style:

Code: Select all

.NormalButton 
{
	border-width:1;
	border-style:solid;
	background-color:darkred;
	color:AliceBlue;
	border-color:Black;
	Font-family:&quote;Verdana&quote;;
	font-size:8pt;
	cursor:hand;
	height:20px;
}
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Why would you NOT want to use a css file?
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Its only for one page, I don't want an extra file, I did it by the way, it looks alright. Thanks for your help.

:D :D :D :D :D
Post Reply