MouseOver Event....

C

conckrish

Hi All,

Can anyone tell me how to populate a window which contains some text
fields while Mouseover a image or imagebutton in asp.net? Is there any
client side Scripts available for this?? Kindly help me...

Regards,
Krish.
 
E

Eliyahu Goldin

Krish,

You need to handle client-site onmouseover event for the control you want
the effect to apply to.

In the event handler you can make javascript calls that will do the task.
What sort of window are you talking about?

Eliyahu
 
S

Siva

Hi Krish,

Yes, Certainly possible.

In ImageControl's client side mouse over event you can do this . The
following sample code should give you some idea on this.

In page load include this code

Image1.Attributes.Add("OnMouseOver", "newwindow();");

and in script code include the code below.

<script language="javascript">
function newwindow()
{
var strReturnScript = window.open('NewWindow.aspx');//also you can specify
the width of the new opening window etc... here,
}
</script>

hope this helps.

Best Regards,
A.Sivakumar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top