By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

javascript + asp.net

P: 15
Hey all,

I hav a prob using javascript within asp.net

All i want to do was just changes the button backcolor when the mouse was on that button
Oct 23 '08 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
you could use:
Expand|Select|Wrap|Line Numbers
  1. //in your css
  2. #buttonid:hover {
  3.    background-color: /* insert-colour-here */;
  4. }
Oct 23 '08 #2

acoder
Expert Mod 15k+
P: 16,027
That wouldn't work in IE6 and IE7 quirks mode. You'd need JavaScript there. You need to change elem.style.backgroundColor onmouseover.
Oct 23 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.