Hi Eirik,
Same idea with a slightly different syntax:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
ImageButton1.Attributes.Add _
("onmouseover", "this.style.borderColor='Red';" & _
"this.src='http://www.gc.ca/images/englishbt.gif'")
End Sub
<asp:ImageButton id="ImageButton1" runat="server"
ImageUrl="http://www.gc.ca/images/francaisbt.gif"
BorderColor="Green" BorderWidth="3px"></asp:ImageButton>
Ken
"Eirik Eldorsen" <NO************@eldorsens.nettsider.no> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
Is it possible to make the mouseover event of a ImageButton to change the
border color?
I use this code to change the src:
ImageButton.Attributes.Add("onmouseover", "this.src='someImage.jpg'");
Eirik Eldorsen