Tuesday, March 13, 2012

swap images

Is there an easier way to swap two images on mouseover. In dreamweaver I used to use about 20 lines of code to do it, I'm just wondering if there are easier ways to do this with .net. I tried the image button but couldn't get it to work.

No probs I found it

<asp:ImageButtonID="ImageButton1"runat="server"

ImageUrl="~/image1.gif"

BorderWidth="0.2"

onmouseover="this.src='image2.gif';"

onmouseout="this.src='image1.gif';"

AlternateText="Click"

/>

0 comments:

Post a Comment