Hi Amy,
It depends on what kind of effect you're trying to achieve. The code below
shows using the onmouseover event. Perhaps you can show us what you need to
accomplish?
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Image1.Attributes.Add _
("onmouseover", _
"this.src='http://www.gc.ca/images/francaisbt.gif'")
End Sub
<form id="Form1" method="post" runat="server">
<asp:Image id="Image1" runat="server"
ImageUrl="http://www.gc.ca/images/englishbt.gif"></asp:Image>
</form>
Ken
MVP [ASP.NET]
"Amy Snyder" <am**@yahoo.com> wrote in message
news:u1**************@TK2MSFTNGP12.phx.gbl...
Is there a way for me to change the ImageUrl property for an image using
javascript? I am assuming there is since I am using javascript to show
and hide the panel that the image is on. If so, what would the correct
syntax be?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!