»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books
»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects
»Competition
Community
Winners
Prizes
Write For Us
Members
»Other Resources
Links
Dotnet Resources
|
Creating Image roll overs in asp.netThis small article tells you how to create image roll overs in asp.net
For example i have a imagebutton on the web form and i want to create a roll over image when a user moves the mouse over the button this is what i do
First i need two images one is the default image and the second is the rollover image
image1.gif , image2.gif
in the code behind after the page load event add this
private void Page_Load(object sender, System.EventArgs e)
{
btnSignUp.Attributes.Add("onmouseover","this.src='images/image2.gif'");
btnSignUp.Attributes.Add("onmouseout","this.src='images/image1.gif'");
}
|
Well that is all there to it make sure the images are in the image folder.
|