<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery/jquery-1.10.2.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#link1').mouseover(function () { $('#img1').replaceWith("<img src='images/1.JPG' width=200 height=200/>"); }); $('#link2').mouseover(function () { alert('hi'); $('#img1').replaceWith("<img src='images/2.JPG' width=200 height=200/>"); }); $('#link3').mouseover(function () { $('#img1').replaceWith("<img src='images/3.JPG' width=200 height=200/>"); }); $('#link4').mouseover(function () { $('#img1').replaceWith("<img src='images/4.JPG' width=200 height=200/>"); }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <img id="img1" /> <asp:LinkButton ID="link1" runat="server" Text="Pradeep"></asp:LinkButton><br /> <asp:LinkButton ID="link2" runat="server" Text="deepu"></asp:LinkButton><br /> <asp:LinkButton ID="link3" runat="server" Text="pandu"></asp:LinkButton><br /> <asp:LinkButton ID="link4" runat="server" Text="bittoo"></asp:LinkButton><br /> </div> </form> </body> </html>
<pre lang="xml">$('.lBtTempClass').mouseover(function() { /// Do your code });
<asp:LinkButton ID="lBtTempID" CssClass="lBtTempClass" runat="server" >
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)