L
lukas yoong via .NET 247
hi guys,
thanx for reading my messsage. currently i am doing a dotnet development project on database management system. The problem i facing now is the mouseover image-changing thing. i have implement this code in webform(.aspx):
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ImageButton1.Attributes.Add("onMouseOver", "document.all.ImageButton1.src='images/About.jpg';")
ImageButton1.Attributes.Add("onMouseOut", "document.all.ImageButton1.src='images/About_over.jpg';")
End Sub
it is working greatly. but when i put this code in baner.ascx, it is not working at all.
hav anybody got any solutions for this?
have a nice day.
thanx for reading my messsage. currently i am doing a dotnet development project on database management system. The problem i facing now is the mouseover image-changing thing. i have implement this code in webform(.aspx):
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ImageButton1.Attributes.Add("onMouseOver", "document.all.ImageButton1.src='images/About.jpg';")
ImageButton1.Attributes.Add("onMouseOut", "document.all.ImageButton1.src='images/About_over.jpg';")
End Sub
it is working greatly. but when i put this code in baner.ascx, it is not working at all.
hav anybody got any solutions for this?
have a nice day.