MouseOver Event....

  • Thread starter Thread starter conckrish
  • Start date Start date
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.
 
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
 
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
 
Back
Top