Hi Eirik,
Same idea with a slightly different syntax:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArg s) _
Handles MyBase.Load
ImageButton1.At tributes.Add _
("onmouseove r", "this.style.bor derColor='Red'; " & _
"this.src='http ://www.gc.ca/images/englishbt.gif'" )
End Sub
<asp:ImageButto n id="ImageButton 1" runat="server"
ImageUrl="http://www.gc.ca/images/francaisbt.gif"
BorderColor="Gr een" BorderWidth="3p x"></asp:ImageButton >
Ken
"Eirik Eldorsen" <NO************ @eldorsens.nett sider.no> wrote in message
news:eM******** *****@TK2MSFTNG P12.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.Att ributes.Add("on mouseover", "this.src='some Image.jpg'");
Eirik Eldorsen