Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UGH! trying to make a rollover submit button w/o images...

Status
Not open for further replies.

tristero

Programmer
Jan 24, 2003
95
0
0
US
i can't get this to work, and i cant see why... please help.

Code:
<head>
<style>

.mybutton   {background-color: white}

</style>
</head>
<body>

<INPUT type=button class=mybutton value="Click Me" OnMouseOver="this.style.background-color='red'" onMouseOut="this.style.background-color='white'">

"this.style.color='red'" works, but i can't get the background-color property to work for some reason.

Dan Trenz
Ann Arbor, MI
 
No Problem just a small change:

OnMouseOver="this.style.background-color='red'" onMouseOut="this.style.background-color='white'">

TO

OnMouseOver="this.style.backgroundColor='red'" onMouseOut="this.style.backgroundColor='white'">




MrGreed

&quot;did you just say Minkey?, yes that's what I said.&quot;
 
yay! thanks so much. I swear i tried that... oh well. thanks!

Dan Trenz
Ann Arbor, MI
 
I thought IE would eat this (as bugzilla does):

Code:
<style type="text/css">
input	{	background-color: white; }
input:hover  {	background-color: red; }
</style>

Unfortunately not... *sniff* and @#!~:E
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top