Hi Miguel,
An ASP.NET Imagebutton control would give you the effect you want:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
ImageButton1.Attributes.Add _
("onclick", _
"window.open('http://www.google.com',null," & _
"'height=200,width=400," & _
"status=yes,toolbar=no,menubar=no," & _
"location=no');return false;")
End Sub
<form id="Form1" method="post" runat="server">
<asp:ImageButton id="ImageButton1" runat="server"
ImageUrl="http://www.google.ca/intl/fr_ca/images/logo.gif"></asp:ImageButton>
</form>
Ken
Microsoft MVP [ASP.NET]
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
Hello,
i have an image with the following code:
<img src="image/panel.gif" width="20" height="80"
onClick="fnLoadNewWindow('http://www.google.com');">
When i click the image the Javascript Function fnLoadNewWindow opens a new
window with google.com.
The problem is that the mouse doesn't change when it's over the image to
the
icon that usually shows when the image is a link.
What am i doing wrong here?
Thank You,
Miguel
P.S: The function works fine. A new windows is opened when i click the
image.