C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

i am using imagebutton,when I want to change the color


Posted Date: 21 Jul 2008      Posted By: prabhu      Member Level: Silver     Points: 1   Responses: 2



i am using imagebutton,when I want to change the color when the mouse is over it,
So i want the javascript code.





Responses

Author: Subodh kumar Prajapati    21 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

HI,
You can use this:
<script language="javascript">
function fck()
{

document.getElementById["TextBox1"].style.backgroundColor="red";


} {



Author: shanmukha kumari    21 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

write the onmouseover event of the image button,
write one javascript function
function changeBGColor()
{
document.getElementById["imagebuttonid"].style.backgroundColor=colorname;

}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Disable right click
Previous : DateTime validation in Javascript
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use